Skip to content

Commit

Permalink
thread safe histo
Browse files Browse the repository at this point in the history
  • Loading branch information
civanch committed Jan 28, 2018
1 parent 1de5e70 commit 28c19cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mixing/Base/src/PileUp.cc
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 28c19cf

Please sign in to comment.