Skip to content

Commit

Permalink
Merge pull request cms-sw#92 from nucleosynthesis/nckw-fix-all-poi-be…
Browse files Browse the repository at this point in the history
…fore-asimovWithDataFit

fix all poi before asimov with data fit
  • Loading branch information
gpetruc committed Feb 4, 2014
2 parents 9771211 + 68a2a16 commit d1a0d59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ void Combine::run(TString hlfFile, const std::string &dataset, double &limit, do
w->saveSnapshot("reallyClean", w->allVars());
if (dobs == 0) throw std::invalid_argument("Frequentist Asimov datasets can't be generated without a real dataset to fit");
RooArgSet gobsAsimov;
utils::setAllConstant(*mc->GetParametersOfInterest(), true); // Fix poi, before fit
dobs = asimovutils::asimovDatasetWithFit(mc, *dobs, gobsAsimov, !bypassFrequentistFit_, expectSignal_, verbose);
if (mc->GetGlobalObservables()) {
RooArgSet gobs(*mc->GetGlobalObservables());
Expand Down

0 comments on commit d1a0d59

Please sign in to comment.