-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up tau related nanoAOD content #33513
Clean up tau related nanoAOD content #33513
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33513/22258
|
A new Pull Request was created by @swozniewski for master. It involves the following packages: PhysicsTools/NanoAOD @cmsbuild, @mariadalfonso, @gouskos, @fgolf can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
-1 Failed Tests: UnitTests RelVals-INPUT Unit TestsI found errors in the following unit tests: ---> test runtestPhysicsToolsNanoAOD had ERRORS RelVals-INPUT
Comparison SummarySummary:
|
@swozniewski
|
I somehow missed this in the log of my local unit test. Looks like some era handling is still incorrect. I will check. |
@mariadalfonso I'm facing some strange behaviour of the modifiers here. I verified that the failing part of the test is run with the 94XMiniAODv1 modifier (only) and it still ends up in this line https://github.com/cms-sw/cmssw/pull/33513/files#diff-d54676262d2e5326ee3455e57747fd476b12be16993a8eb0f4794e8771f6526fR161 triggering the error event though only other modifiers are used in the loop. For some reason, putting an extra check of the validity of the modifiers by hand (which in my understanding should be done by the modifiers themselves before modifying) cures the test. I put my diff below. Maybe you can verify my observation or see what the problem is.
|
ah, I guess the PSet entered as an keyword argument is created no matter whether it is used by the modifier later on and that's where it fails already... |
for era in [run2_nanoAOD_92X, run2_nanoAOD_94XMiniAODv2, \ | ||
run2_nanoAOD_94X2016, run2_nanoAOD_102Xv1, run2_nanoAOD_106Xv1]: | ||
era.toModify(tauTable, | ||
variables = cms.PSet(tauTable.variables, _mvaAntiEVars, _mvaIsoVars2015Reduced, _mvaIsoVars2017v1, _mvaIsoVars2017v2) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lines are overwritten after, expect for the run2_nanoAOD_94XMiniAODv1 as is missed in this list.
also the run2_nanoAOD_94XMiniAODv1 is the one that make things crush.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify, run2_nanoAOD_94XMiniAODv1 is not in the list on purpose because it had an independent treatment before already. See my last comment in the main thread concerning explanation and solution of the problem.
I added the imports of the missing modifiers and checked with one of the relval tests that failed before. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33513/22475
|
Pull request #33513 was updated. @cmsbuild, @mariadalfonso, @gouskos, @fgolf can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b82149/14850/summary.html Comparison SummarySummary:
|
+xpog major cleanup of the selection in view of UL mini run2_nanoAOD_106Xv2 and future
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
@swozniewski |
+1 |
PR description:
Removal of deprecated/redundant tau-related nanoAOD content.
Old decay mode ID is renamed in order to make it clearer that it is not the standard use case anymore.
Deprecated IDs are also removed from the selection which causes differences in the tau related distributions. A dR03 ID is added to the selection which adds some new taus, but altogether the number decreases.
Backport to 10_6_X for nanoAOD v9 intended.
PR validation:
Inspected some distributions by hand which change as stated above.
Code/format checks passed, unit tests passed, matrix tests passed