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 logic problems in MuScleFitBase #26768
Fix logic problems in MuScleFitBase #26768
Conversation
Everywhere in readProbabilityDistributionsFromFile where histograms are used conditionally, the logic for the condition are now identical. Problems with the logic were identified by the static analyzer and gcc 9.
This allows specifying the size only once.
The code-checks are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26768/9765
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26768/9767
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: MuonAnalysis/MomentumScaleCalibration @cmsbuild, @santocch 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 Comparison Summary:
|
@santocch this looks ok to me, I will move forward with the integration. Please have a look |
+1 |
merge |
+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 be automatically merged. |
PR description:
The static analyzer and gcc 9 both identified cases where uninitialized variables could be accessed at run time. The underlying problem was inconsistent logic being applied to the application of the variables.
Additionally, a few minor code improvements were implemented
PR validation:
The code compiles using gcc 7.
Compiles without warnings using gcc 9.