Skip to content
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

Merged
merged 1 commit into from
Mar 16, 2014

Conversation

davidlange6
Copy link
Contributor

fix a few modules using statics in the reco sequence
CaloTowersCreator
HcalHitReconstructor
JetPlusTrackProducer
RPCUnpackingModule

@cmsbuild
Copy link
Contributor

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
RecoJets/JetPlusTracks
RecoLocalCalo/CaloTowersCreator
RecoLocalCalo/HcalRecAlgos

@nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please review it and eventually sign? Thanks.
@TaiSakuma, @nhanvtran, @argiro this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

const std::vector<double>&
CaloTowersCreator::getGridValues()
{
static std::vector<double> retval;
Copy link
Contributor

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.};

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always the prefered solution :)

@cmsbuild
Copy link
Contributor

@anton-a
Copy link

anton-a commented Mar 16, 2014

Running some extra tests...

@anton-a
Copy link

anton-a commented Mar 16, 2014

+1
No regressions.
Note that some of the changes affect parts of code not run in normal reco. Some of the code may or may not be rally needed.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

ktf added a commit that referenced this pull request Mar 16, 2014
MT -- Removing use of statics in reco
@ktf ktf merged commit b09da1f into cms-sw:CMSSW_7_1_X Mar 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants