-
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
Merge .h and .cc files of plugins in several PhysicsTools packages #34615
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34615/24192
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages:
@perrotta, @jpata, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/17178/summary.html CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/17178/llvm-analysis/legacy-mod-sa.txt for details. Comparison SummarySummary:
|
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.
Thanks for this refactoring! Please see inline for a few questions.
// get tau-jet collection from the event | ||
edm::Handle<edm::View<reco::BaseTau> > tauJets; | ||
evt.getByToken(srcToken_, tauJets); | ||
auto tauJets = evt.getHandle(srcToken_); |
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.
since the Handle is not used later, it seems like this could work too?
auto tauJets = evt.getHandle(srcToken_); | |
const auto& tauJets = evt.get(srcToken_); |
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 right, but this commit is outdated now because the esConsumes migration of the TauJetCorrFactorsProducer
was done in #34997.
es.get<JetCorrectionsRecord>().get(payload, jecParameters); | ||
|
||
correctorMapping[payload] = std::make_shared<FactorizedJetCorrector>(params(*jecParameters, levels_)); | ||
const int payloadTokenValue = payloadToken->index().value(); |
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.
This is a nice refactoring to go from a string to an int in the map, but could you comment if it's guaranteed to give the same result? It's not immediate (to me at least) what index().value()
corresponds to here.
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 right, but this commit is outdated now because the esConsumes migration of the TauJetCorrFactorsProducer
was done in #34997.
kind ping @guitargeek, just in case you are around |
kind ping @guitargeek |
kind ping @guitargeek |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34615/24979
|
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/18188/summary.html CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-49923b/18188/llvm-analysis/legacy-mod-sa.txt for details. Comparison SummarySummary:
|
+reconstruction
|
+1 |
merge |
+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. |
PR description:
Part of the series of PRs that merges
.h
files with the.cc
files of the plugins in the PhysicsTools subsystem, continuing the work from #34594.It makes maintaining the plugins much easier and also excludes the possibility to wrongly include plugin header files.
There were the steps taken to merge the files:
PR validation:
CMSSW compiles.
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport intended.