Skip to content

Commit

Permalink
Merge pull request cms-sw#83 from bendavid/snapshotLoadingFixed
Browse files Browse the repository at this point in the history
make sure mass is consistently reset to value from snapshot
  • Loading branch information
gpetruc committed Jan 20, 2014
2 parents eb8b141 + b732356 commit 26353cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ void Combine::run(TString hlfFile, const std::string &dataset, double &limit, do
}
if (snapshotName_ != "") {
w->loadSnapshot(snapshotName_.c_str());
//make sure mass value used is really the one from the loaded snapshot
mass_ = MH->getVal();
}
} else {
hlf.reset(new RooStats::HLFactory("factory", fileToLoad));
Expand Down

0 comments on commit 26353cf

Please sign in to comment.