-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix for smeared MET calculation and its uncertainties. #36797
Fix for smeared MET calculation and its uncertainties. #36797
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36797/27945
|
A new Pull Request was created by @michaelwassmer for master. It involves the following packages:
@jpata, @cmsbuild, @clacaputo, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Thanks for the new PR! At a first look, the implementation seems very elegant. |
@cmsbuild please test |
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Comparison SummarySummary:
|
I'm a little bit confused. Is this error really due to my changes? Looking at the error mentioned by the bot this seems unlikely? The module which is crashing according to the log is HitPairEDProducer:pixelPairStepHitDoubletsB. This, however, should have nothing to do with my changes. |
The error is already in the IB: #36804 |
@michaelwassmer @errai- has this already been scheduled to be discussed at a JME/JMAR meeting? |
+reconstruction
many thanks for @michaelwassmer and @errai- for seeing this through! |
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1
|
merge |
This PR is in reference to an older PR (#36165).
It basically does the same thing, however with a lot less new lines of code.
PR description:
This pull request fixes the incorrect calculation of the nominal smeared missing transverse energy (MET). The underyling problem is the application of the JER correction factors. These factors are applied in PhysicsTools/PatUtils/interface/SmearedJetProducerT.h but later not considered when reverting to the uncorrected jets in JetMETCorrections/Type1MET/interface/PFJetMETcorrInputProducerT.h.
This results in the problem that the JER correction factors in the smeared MET calculation effectively cancels and therefore the smeared MET is basically the same as the regular type1-corrected MET. After the changes shown below, the nominal smeared MET distributions from MiniAOD are similar to the ones obtained from NanoAOD.
Finally, there is also a mistake when saving the JERup and JERdown varied smearedMET. The different contributions of the nominal smeared MET correction and the JERup and JERdown variations are not separated correctly from one another. After the changes shown below, the varied smeared MET distributions from MiniAOD are similar to the ones obtained from NanoAOD.
This pull request includes the following:
DataFormats/PatCandidates/src/MET.cc
JetMETCorrections/Type1MET/interface/PFJetMETcorrInputProducerT.h
PhysicsTools/PatUtils/plugins/PATPFJetMETcorrInputProducer.cc
PR validation: