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 with .cc files of plugins in EgammaHFProducers #32613
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32613/20660
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: RecoEgamma/EgammaHFProducers @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-9988fa/12010/summary.html Comparison SummarySummary:
|
#include "DataFormats/Common/interface/Handle.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" |
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.
Why are you removing this?
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 one includes EventSetup.h
, one automatically gets the ESHandle
because the EventSetup
has functions that return ESHandles
.
https://github.com/cms-sw/cmssw/blob/master/FWCore/Framework/interface/EventSetup.h
That means including ESHandle.h
in plugin sources is generally unnecessary.
I had this idea to remove it after I saw some other ES migration PRs systematically remove includes of ESHandle.h
let me see if I can find there PRs again to have a precedent to point to.
The same logic in principal also applies to Handle.h
by the way.
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 this file uses ESHandle, it should be included directly and not rely on something else to include it indirectly.
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, then I'll just change the file so it doesn't use the ESHandle anymore
@@ -26,7 +26,9 @@ reco::HFValueStruct::HFValueStruct(const int& version, const std::vector<double> | |||
doPU_ = false; | |||
} | |||
|
|||
int reco::HFValueStruct::indexByIeta(int& ieta) const { return (ieta > 0) ? (abs(ieta) - 29 + 13) : (41 - abs(ieta)); } | |||
int reco::HFValueStruct::indexByIeta(int& ieta) const { | |||
return (ieta > 0) ? (std::abs(ieta) - 29 + 13) : (41 - std::abs(ieta)); |
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.
return (ieta > 0) ? (std::abs(ieta) - 29 + 13) : (41 - std::abs(ieta)); | |
return (ieta > 0) ? (ieta - 29 + 13) : (41 + ieta); |
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.
Ah yes, thanks.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32613/20696
|
please test |
please abort |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32613/20700
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9988fa/12231/summary.html Comparison SummarySummary:
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9988fa/12231/summary.html Comparison SummarySummary:
|
+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 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 |
PR description:
Part of the series of PRs that merges
.h
files with the.cc
files of the plugins in the RecoEgamma subsystem.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.