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
Run2-alca109 Update a few plugins to conform standard #21720
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-21720/2596 |
A new Pull Request was created by @bsunanda for master. It involves the following packages: Calibration/IsolatedParticles @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @lpernie can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
void clearTreeVectors(); | ||
int particleCode(int); | ||
|
||
static const int NPBins_ = 3; |
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.
@bsunanda you could even make them constexpr
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.
Done
|
||
IsolatedGenParticles::IsolatedGenParticles(const edm::ParameterSet& iConfig) { | ||
|
||
genSrc_ = iConfig.getUntrackedParameter("GenSrc",std::string("generatorSmeared")); | ||
usesResource("TFileService"); |
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.
please use the string constant:
usesResource(TFileService::kSharedResource);
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.
Done
a_Isolation_= iConfig.getUntrackedParameter<bool>("UseConeIsolation",false); | ||
pCutIsolate_= iConfig.getUntrackedParameter<double>("PMaxIsolation",20.0); | ||
verbosity_ = iConfig.getUntrackedParameter<int>("Verbosity", 0); | ||
debugL1Info_= iConfig.getUntrackedParameter<bool>( "DebugL1Info", false ); |
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 could go into the initializer list of the constructor
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.
Done
#include "Calibration/IsolatedParticles/plugins/IsolatedTracksHcalScale.h" | ||
|
||
// system include files | ||
#include <memory> |
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.
no need to include this if you do not use smart pointers
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.
Done
#process.isolatedGenParticles.PTMin = 0.0 | ||
process.isolatedGenParticles.Verbosity = 0 | ||
#process.isolatedGenParticles.MaxChargedHadronEta = 3.5 | ||
process.load("Calibration.IsolatedParticles.IsolatedGenParticles_cfi") |
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 might be wrong, but I believe the CMS naming convention is to start with lower case.
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 the name of the file created in cfipython
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.
well, then you should adapt fillDescriptions
accordingly
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-21720/2624 |
@cmsbuild Please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
Update IsolatedGenParticle and IsolatedTrackHcalScale used to get energy scale factor Hcal