-
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
Include option for 2018 Jetid working points #27184
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27184/10341
|
A new Pull Request was created by @knash for master. It involves the following packages: PhysicsTools/SelectorUtils @perrotta, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
-1 Tested at: c2c0af6 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: UnitTests
I found errors in the following unit tests: ---> test runtestUtilAlgos had ERRORS |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
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.
Also a rebase is needed, see conflicting files
@@ -289,13 +307,13 @@ class PFJetIDSelectionFunctor : public Selector<pat::Jet> { | |||
} | |||
} // end if basic jet | |||
|
|||
float etaB=2.4; | |||
// Cuts for |eta| < 2.6 for Summer18 | |||
if (version_ != SUMMER18) etaB=2.6; |
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.
Why not to define here etaB
for all versions (with some else if
statement, for example).
Then you won't have to redefine by hand inside (almost) every if
branch
float etaB=2.4; | ||
// Cuts for |eta| < 2.6 for Summer18 | ||
if (version_ != SUMMER18) etaB=2.6; | ||
if((version_ != WINTER17 && version_ != WINTER17PUPPI && version_ != SUMMER18) || quality_ != TIGHT ) {if ( ignoreCut(indexCEF_) || ( cef < cut(indexCEF_, double()) || std::abs(jet.eta()) > etaB ) ) passCut( ret, indexCEF_);} |
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.
Splitting the line will improve readability (even better if you run clang format since now: it will be enforced anyhow)
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.
(The same apply to most of the lines below...)
if ( ignoreCut(indexNEF_TR_) || ( nef < cut(indexNEF_TR_, double()) || std::abs(jet.eta()) <= 2.6 || std::abs(jet.eta()) > 2.7) ) passCut( ret, indexNEF_TR_); | ||
if ( ignoreCut(indexNCH_TR_) || ( nch > cut(indexNCH_TR_, double()) || std::abs(jet.eta()) <= 2.6 || std::abs(jet.eta()) > 2.7) ) passCut( ret, indexNCH_TR_); | ||
if ( quality_ == TIGHTLEPVETO ) { | ||
if ( ignoreCut(indexMUF_TR_) || ( muf < cut(indexMUF_TR_, double()) || std::abs(jet.eta()) <= 2.6 || std::abs(jet.eta()) > 2.7) ) passCut( ret, indexMUF_TR_); |
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.
Some better indentation here is mandatory.
Even better if you have already run clang-format
push_back("CEF_TR"); | ||
} | ||
} | ||
if( (version_ == WINTER17 || version_ == WINTER17PUPPI || version_ == SUMMER18) && quality_ == LOOSE ){ | ||
edm::LogWarning("BadJetIDVersion") << "Winter17 JetID version does not support the LOOSE operating point -- defaulting to TIGHT"; |
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.
The LogWarning message must take also "Summer18" into account now
@@ -443,7 +503,7 @@ class PFJetIDSelectionFunctor : public Selector<pat::Jet> { | |||
} else if ( quality_ == TIGHT ) { | |||
set("CHF", 0.0); |
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.
Indentation... or clang-format
Given the changes observed in DQM in the jenkins tests outputs, and not in the reco output themselves, I have the impression that such PFJetIDSelectionFunctor is picked in the JETMET DQM modules, but not in the reco miniAOD ones. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1
|
@santocch you already signed the previous version of the PR before removing nanAOD, so I assume this is ok for you. Please comment otherwise |
+1 |
merge |
+1 |
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 be automatically merged. |
PR description:
Update to include 2018 jetid version
https://twiki.cern.ch/twiki/bin/view/CMS/JetID13TeVRun2018
This just updates
PhysicsTools/SelectorUtils/interface/PFJetIDSelectionFunctor.h
and not
PhysicsTools/NanoAOD/python/jets_cff.py
PR validation:
Tested that the triggers for tight and tightlepveto seem to fire correctly and that the efficiency makes sense