-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Thread safe piliup histogram for mixing #22000
Conversation
The code-checks are being triggered in jenkins. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-22000/3088 |
The tests are being triggered in jenkins. |
A new Pull Request was created by @civanch (Vladimir Ivantchenko) for master. It involves the following packages: Mixing/Base @cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
To avoid future problems, it would be nice to
That will keep anyone from begin able to call a non-const function of the TH1F without first copying the histogram. |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
@civanch thank you for adjusting the PR, as it was already signed I take it. |
merge |
@Dr15Jones @civanch I have merged this PR as urgent fix, but I ask the simulation group to look at the further suggestions by Chris and propose an integration |
one could imagine changing the constructor to take either the const array of PDF values from the PSet or the CDF that is actually used. There is really no need to have used a TH1* in the PileUp class (other than the desire to dump out a root file containing that histogram with each job we run in production...) as the usage is actually not of the histogram but of its CDF.
… On Jan 27, 2018, at 9:42 PM, Chris Jones ***@***.***> wrote:
To avoid future problems, it would be nice to
• change PileUp's constructor to take a std::shared_ptr<const PileUpConfig>
• change PileUpConfig to hold a std::shared_ptr<const TH1F>
That will keep anyone from begin able to call a non-const function of the TH1F without first copying the histogram.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Addressing issue #21972 , implemented as suggested by @Dr15Jones .