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
Fix RecoParticleFlow producers as reported by static analyser #7998
Conversation
…ht allow reco::PFCluster::energy() to return a 0 value.
A new Pull Request was created by @diguida (Salvatore Di Guida) for CMSSW_7_5_X. Fix RecoParticleFlow producers as reported by static analyser It involves the following packages: RecoParticleFlow/PFClusterProducer @cmsbuild, @cvuosalo, @nclopezo, @slava77 can you please review it and eventually sign? Thanks. |
please test |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @ktf, @smuzaffar |
+1 |
Fix RecoParticleFlow producers as reported by static analyser
Technical bug fixes already proposed in 73X as part of #7941
RecoParticleFlow/PFClusterProducer/src/PFClusterEMEnergyCorrector.cc
added a guard against dividing by 0, in case some bug in the future might allowreco::PFCluster::energy()
to return a 0 value;RecoParticleFlow/PFProducer/src/PFAlgo.cc
removed not needed calculation within a loop.