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

Fixed static anal warnings in SIM #13440

Merged
merged 3 commits into from Feb 29, 2016

Conversation

civanch
Copy link
Contributor

@civanch civanch commented Feb 23, 2016

This PR is produced instead include static analysis warnings fixes. No effect on production. Is done instead of #13349.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @civanch (Vladimir Ivantchenko) for CMSSW_8_1_X.

It involves the following packages:

SimG4Core/Application
SimG4Core/CustomPhysics
SimG4Core/GFlash
SimG4Core/Geometry
SimG4Core/PhysicsLists

@cmsbuild, @civanch, @mdhildreth, @davidlange6 can you please review it and eventually sign? Thanks.
@makortel this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@civanch
Copy link
Contributor Author

civanch commented Feb 23, 2016

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11481/console

@civanch
Copy link
Contributor Author

civanch commented Feb 23, 2016

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@civanch
Copy link
Contributor Author

civanch commented Feb 29, 2016

@davidlange6, this PR is not very important, at the same time, there is no sense to keep it pending. There were 3 concerns to the one of 8_0: one was fixed; second cannot be changed - static member is needed for static method, otherwise the code is not compiled; the 3d - I put explanations about code which seems to be correct.


RHStopTracer::RHStopTracer(edm::ParameterSet const & p) {
edm::ParameterSet parameters = p.getParameter<edm::ParameterSet>("RHStopTracer");
mStopRegular = parameters.getUntrackedParameter<bool>("stopRegularParticles", false);
mTraceEnergy = 1000 * parameters.getUntrackedParameter<double>("traceEnergy", 1.e20); // GeV->KeV
mTraceParticleNameRegex = parameters.getParameter<std::string>("traceParticle");
mTraceEnergy = parameters.getUntrackedParameter<double>("traceEnergy", 1.e20);
Copy link
Contributor

Choose a reason for hiding this comment

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

@civanch - what are the units of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidlange6 , G4 default unit is MeV, because this parameter of the class is used only to compare with G4 value, no conversion is needed. To clarify value a LogInfo printout is added, so user will see what is the value/unit of this energy.

@davidlange6
Copy link
Contributor

+1
ok - thx

cmsbuild added a commit that referenced this pull request Feb 29, 2016
@cmsbuild cmsbuild merged commit 40102bc into cms-sw:CMSSW_8_1_X Feb 29, 2016
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.

None yet

3 participants