Skip to content

Commit

Permalink
Merge pull request #22000 from civanch/mixing_thread_safety1
Browse files Browse the repository at this point in the history
Thread safe piliup histogram for mixing
  • Loading branch information
cmsbuild authored Jan 28, 2018
2 parents 10b588d + e9e0626 commit fba039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mixing/Base/src/PileUp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace edm {
Source_type_(config->sourcename_),
averageNumber_(config->averageNumber_),
intAverage_(static_cast<int>(averageNumber_)),
histo_(config->histo_),
histo_(std::make_shared<TH1F>(*config->histo_)),
histoDistribution_(type_ == "histo"),
probFunctionDistribution_(type_ == "probFunction"),
poisson_(type_ == "poisson"),
Expand Down

0 comments on commit fba039c

Please sign in to comment.