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
Correctly add HIPhotonIsolation to pat::photon #32462
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32462/20362
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32462/20363
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: RecoEgamma/EgammaPhotonProducers @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
@@ -238,6 +242,13 @@ ReducedEGProducer::ReducedEGProducer(const edm::ParameterSet& config) | |||
config.getParameter<edm::InputTag>("photonsPFValMap"))), | |||
gsfElectronPfCandMapT_(consumes<edm::ValueMap<std::vector<reco::PFCandidateRef>>>( | |||
config.getParameter<edm::InputTag>("gsfElectronsPFValMap"))), | |||
recoHIPhotonIsolationMapInputToken_{ | |||
config.existsAs<edm::InputTag>("HIPhotonIsolationMapInput") |
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.
other cases in this producer rely on empty inputTags; I suggest to stay with that logic, also considering that use of existsAs
is generally not welcome.
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, please stay with lower case
config.existsAs<edm::InputTag>("HIPhotonIsolationMapInput") | |
config.existsAs<edm::InputTag>("hiPhotonIsolationMapInput") |
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.
Okay, I will drop the existsAs
after the tests. I know it's not welcome because fillDescriptions
is preferred. But since there is no fillDescriptions, isn't it better than an empty tag? I thought existsAs
would make an eventual fillDescription
migration easier because it makes it explicit that the parameter is optional. In the end I think the consistency with the other tags is the strongest argument for dropping the existsAs
here, so I agree with you in the end.
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13de91/11582/summary.html Comparison SummarySummary:
|
FYI it's expected that there are no reco differences. The HI events in the regular matrix tests have no photons. Privately, I used wf 158.2, the Photon+Jets HI workflow, to validate this PR. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32462/20366
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32462/20495
|
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13de91/11792/summary.html DAS Queries failed Comparison SummarySummary:
|
+1
actually, since the main target for HI miniAOD is 11_2_X, please provide a backport to 11_2_X |
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) |
+1 |
@guitargeek Would you mind backporting this to 11_2_X, which is the release for HI miniAOD? Sorry, I should have caught that before the holiday. |
Okay! There you go #32619 |
PR description:
This is to address issue #32451.
I was asked if there is a simpler python-level-only solution for that issue than to hard-code the propagation of the HI isolation value map in the ReducedEGProducer. Well, I couldn't find any and I don't think it's even possible because the HIPhotonIsolation is a custom class. Hence, we can't use the existing mechanisms for
int
andfloat
ValueMaps.Accordingly, this PR proposes the solution via editing the ReducedEGProducer source.
@mandrenguyen @ttrk
PR validation:
CMSSW compiles, local matrix tests pass.
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport intened.