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 thread-safety problems with beam spot fitting #18370
Conversation
Changed how TH1::Fit was begin used to avoid thread-safety problems - forced ROOT to not use a global instance of Minuit - used the 'N' option of fitting to avoid adding the function to the global list of functions (since that list is not properly protected from manipulations from several threads simultaneously).
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: RecoVertex/BeamSpotProducer @perrotta, @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @slava77, @mmusich, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here #13028 |
please test |
The tests are being triggered in jenkins. |
@davidlange6 this should fix all or at least most of the crashes in the recent 9_1_X. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
not expected but folder containing SiStrip plots are broken in data wf 136.731 tests : https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_9_1_X_2017-04-16-2300+18370/19458/136.731_RunSinglePh2016B+RunSinglePh2016B+HLTDR2_2016+RECODR2_2016reHLT_skimSinglePh_HIPM+HARVESTDR2/AlCaReco.html |
please test |
The tests are being triggered in jenkins. |
The tests are being triggered in jenkins. |
Comparison job queued. |
FWIW, this PR solves the recent problems in the HLT Integration tests, which were of these types:
|
@@ -16,6 +16,7 @@ | |||
<use name="clhep"/> | |||
<use name="rootcore"/> | |||
<use name="rootminuit2"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this obsolete now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add rootminuit
dependency to get the symbol for TMinuitMinimizer
. I didn't check to see if rootminuit2
can go away since I'm not certain why it was there to begin with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested and removing <use name="rootminuit2"/>
does not appear to cause any adverse effects.
@davidlange6 do you want to me to update the pull request with this removed? Or do you want that as a seperate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separately is good. I'll merge this to restore the ibs...
Comparison is ready Comparison Summary:
|
PLEase add any further comments for later review. |
#18392 removed the unneeded dependency. |
+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 requires discussion in the ORP meeting before it's merged. @Muzaffar, @davidlange6, @smuzaffar |
Changed how TH1::Fit was begin used to avoid thread-safety problems
global list of functions (since that list is not properly protected
from manipulations from several threads simultaneously).