-
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
removing use of statics in reco #2845
Conversation
A new Pull Request was created by @davidlange6 for CMSSW_7_1_X. removing use of statics in reco It involves the following packages: EventFilter/RPCRawToDigi @nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please review it and eventually sign? Thanks. |
const std::vector<double>& | ||
CaloTowersCreator::getGridValues() | ||
{ | ||
static std::vector<double> retval; |
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 would also have worked
static const std::vector<double> retval = {0.,10.,20.,30.,40.,50.,100.,1000.};
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 its unused code I just removed it...
On Mar 13, 2014, at 2:42 PM, "Chris Jones" <notifications@github.commailto:notifications@github.com> wrote:
In RecoLocalCalo/CaloTowersCreator/src/CaloTowersCreator.cc:
#include "Geometry/CaloTopology/interface/HcalTopology.h"
// severity level for ECAL
#include "RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgoRcd.h"
#include "CommonTools/Utils/interface/StringToEnumValue.h"-const std::vector&
-CaloTowersCreator::getGridValues()
-{
- static std::vector retval;
This would also have worked
static const std::vector retval = {0.,10.,20.,30.,40.,50.,100.,1000.};
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/2845/files#r10564194.
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.
Always the prefered solution :)
Running some extra tests... |
+1 |
MT -- Removing use of statics in reco
fix a few modules using statics in the reco sequence
CaloTowersCreator
HcalHitReconstructor
JetPlusTrackProducer
RPCUnpackingModule