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
HCAL 25ns reco method 2: fix a remaining thread-safe issue #6258
HCAL 25ns reco method 2: fix a remaining thread-safe issue #6258
Conversation
…iable" for psfPtr_, psFit_x, psFit_y, psFit_erry and cntNANinfit.
A new Pull Request was created by @lihux25 (Hongxuan Liu) for CMSSW_7_3_X. Fix a remaining thread-safe issue It involves the following packages: RecoLocalCalo/HcalRecAlgos @cmsbuild, @nclopezo, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks. |
Tested on 25202.0 and can reproduce the same results as before this fix (expected). |
Thank you very much for the quick response. before the cms-bot gets to running the checks, could you please check
after it completes, look at the results using the command that's printed out in the end, smth similar to |
Slava, thank you very much for the very useful command! I tried what you sent to me. Starting LLVM static checkers src I have to checkout the Utilities/StaticAnalyzers package to compile it by myself... Anyway, the test shows no sign of thread-safety issue in the PulseShapeFitOOTPileupCorrection.cc(h) code anymore. |
Hi Hongxuan @Dr15Jones |
Neither of the member functions in PulseShapeFitOOTPileupCorrection should be considered const. The reason is both those functions call non-const functions of either As long as different instances of PulseShapeFitOOTPileupCorrection are always used on different threads then it appears the class is now thread friendly. |
Do I understand it correctly that the physics output shouldn't change? |
Yes. The physics results shouldn't change. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
…ns_method2 Fix a remaining thread-safe issue
@lihux25 |
I meant to say "the subject of the PR" (the top first line) |
] Fixed the following issue:
psfPtr_, psFit_x, psFit_y, psFit_erry and cntNANinfit were not thread-safe due to "non-const
global static variable" --> now fixed