-
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
Migrate EgammaSCCorrectionMaker to esConsumes() #35019
Migrate EgammaSCCorrectionMaker to esConsumes() #35019
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35019/24873
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages:
@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
-1 Failed Tests: RelVals AddOn CMS StaticAnalyzer warnings: There are 1 EventSetupRecord::get warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-563905/18035/llvm-analysis/esrget-sa.txt for details. RelVals
Expand to see more relval errors ...AddOn Tests
Expand to see more addon errors ... |
…ducer::beginRun() It is called unconditionally from GEDPhotonProducer::produce(), I can not see how the call from beginRun() could do anything additional except it would require different set ESGetTokens wihtin PhotonEnergyCorrector etc compared to other users.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35019/24877
|
@cmsbuild, please test |
@@ -360,12 +358,6 @@ GEDPhotonProducer::GEDPhotonProducer(const edm::ParameterSet& config) | |||
} | |||
} | |||
|
|||
void GEDPhotonProducer::beginRun(edm::Run const& r, edm::EventSetup const& eventSetup) { | |||
if (!recoStep_.isFinal()) { | |||
photonEnergyCorrector_->init(eventSetup); |
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 photonEnergyCorrector_->init()
is already called unconditionally in GEDPhotonProducer::produce()
so this call looks redundant. Removing it allows to keep single set of ESGetTokens in PhotonEnergyCorrector
and its helper classes.
@@ -47,7 +45,7 @@ class testEcalClusterFunctions : public edm::EDAnalyzer { | |||
|
|||
testEcalClusterFunctions::testEcalClusterFunctions(const edm::ParameterSet& ps) { |
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.
A side note that this module is a legacy edm::EDAnalyzer
, and needs to be migrated to one of the thread-efficient base classes (assuming it is still useful).
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-563905/18037/summary.html CMS StaticAnalyzer warnings: There are 1 EventSetupRecord::get warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-563905/18037/llvm-analysis/esrget-sa.txt for details. Comparison SummarySummary:
|
This PR seems to have some overlap with #35021 |
Closing in favor of #35021 that does more modernization. |
PR description:
Part of #31061.
Resolves cms-sw/framework-team#248.
PR validation:
Code compiles.