-
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
PUPPI MET in RECO #29254
PUPPI MET in RECO #29254
Conversation
The code-checks are being triggered in jenkins. |
please wait before testing, I hit enter too quickly |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29254/14294
|
A new Pull Request was created by @ahinzmann for master. It involves the following packages: CommonTools/ParticleFlow @perrotta, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
The code-checks are being triggered in jenkins. |
@ahinzmann |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29254/14301
|
This can be tested standalone. Once #28936 is merged in CMSSW, I can do the merge here as well. I'm still finishing one round of local testing. Once they finish, it would be good to test here. |
The code-checks are being triggered in jenkins. |
local test ran successful. Could this version be tested? |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29254/14303
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+1 |
Do you have comments @santocch ? |
@silviodonato |
merge |
We are getting some errors in the IB. Please look at #29744 |
+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. |
if not self.getvalue("onMiniAOD"): | ||
pfCandsNoJetsNoEle.useDeltaRforFootprint = True | ||
pfCandsNoJetsNoEle.veto = "pfeGammaToCandidate:electrons" | ||
addToProcessAndTask("pfCandsNoJetsNoEle"+postfix, pfCandsNoJetsNoEle, process, task) |
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.
I was debugging differences in UL re-miniAOD between 106X and 112X, and was puzzled by the somewhat small but numerous changes in slimmedMETsNoHF UnclusteredEnUp/Down.
If I understood correctly (although I did not add any debug printouts to confirm), the problem is that the "NoHF" is based on noHFCands
, which are copies (not Ptrs) of the original PF cands
cmssw/CommonTools/ParticleFlow/interface/GenericPFCandidateSelectorDefinition.h
Lines 31 to 34 in 3402e09
if (selector_(*pfc)) { | |
selected_.push_back(reco::PFCandidate(*pfc)); | |
reco::PFCandidatePtr ptrToMother(hc, key); | |
selected_.back().setSourceCandidatePtr(ptrToMother); |
So, the CandPtrProjector can not match the vetoing electron's sourceCandidatePtr (the original particleFlow) to the
noHFCands
(another check by the cand's sourceCandidatePtr may suffice though).So, either we need an extension in CandPtrProjector to also check for the main collection sourceCandidatePtr or instead have
useDeltaRforFootprint = True
I'll re-post this as an issue.
PR description:
This PR computes puppiNoLep weights and puppi MET in RECO and stores the puppiNoLep weight as a value map. PUPPI MET is clustered based on standard PF candidates together with the value map of weights. A new boolean "isWeighted" is added to the reco::PFMet interface to indicate whether weights were applied during jet clustering. The packed candidates pick up the value map such that puppi does not need to be re-computed in MiniAOD.
The same was done for the puppi and PUPPI jets in #28936.
Other changes:
PR validation:
runTheMatrix -l limited
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport foreseen.