-
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
Bug fix for track MET in MET correction tools #34860
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34860/24658
|
A new Pull Request was created by @lathomas for master. It involves the following packages:
@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-049747/17748/summary.html Comparison SummarySummary:
|
@@ -1728,7 +1728,7 @@ def miniAODConfigurationPre(self, process, patMetModuleSequence, pfCandCollectio | |||
patMetModuleSequence += getattr(process, "pfMetCHS") | |||
patMetModuleSequence += getattr(process, "patCHSMet") | |||
|
|||
pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("fromPV(0) > 0 && charge()!=0")) | |||
pfTrk = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("pvAssociationQuality()>=4 && charge()!=0 && vertexRef().key()==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.
if this has to be the same as in miniAOD_tools.py, please define a common reference and use it or clone from it directly in the places where these need to be the same.
Here, it looks like the package dependency chain suggests this directory is OK. So, e.g. in PhysicsTools/PatUtils/python/tools/trackSelectors_cff.py
chargedPackedCandsForMet = cms.EDFilter("CandPtrSelector" ...
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.
would be great to do as well for the pfCHS.
note in runMETCorrectionsAndUncertainties.py is even defined twice once for jets and once for met
pfCHS = cms.EDFilter("CandPtrSelector", src = cms.InputTag("packedPFCandidates"), cut = cms.string("fromPV(0)>0")) |
pfCHS = cms.EDFilter("CandPtrSelector", src = pfCandCollection, cut = cms.string("fromPV")) |
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.
@lathomas |
@lathomas @ahinzmann more details about #33885 were covered in the reco meeting |
@lathomas #33885 could potentially also address the issue tackled by this PR. Are you able to test if #33885 helps cure the issue here? |
Hello.
The input collection for TrkMET is not equivalent to charged pfCHS |
What exactly is the difference? Is it a difference choice of pvAssociationQuality threshold? |
Yes. Track MET uses a tighter selection than CHS apparently: |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34860/24862
|
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-049747/18021/summary.html Comparison SummarySummary:
|
+reconstruction
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR is a fix of a longstanding bug in the calculation of the track MET in the MET correction tools that results in a wrong value in NANOAOD.
The bug was recently (re?)discovered when trying to run MINI and NANO in a single job (see #34714 )
The PF candidate filter is now in synch with the one used in the MINIAOD tools.
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py#L219-L222
PR validation:
Explicitly checked that the TrackMET value in NANOAOD is identical when you fetch the MINIAOD value or recompute it using the MET correction tool.