Skip to content

Commit

Permalink
Update Combine.cc
Browse files Browse the repository at this point in the history
Correct suggestion now for option to include
  • Loading branch information
nucleosynthesis authored Apr 29, 2024
1 parent e791492 commit e88871c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ void Combine::run(TString hlfFile, const std::string &dataset, double &limit, do
allFloatingParameters.remove(*mc->GetParametersOfInterest());
int nFloatingNonPoiParameters = utils::countFloating(allFloatingParameters);
if (nFloatingNonPoiParameters && !toysNoSystematics_ && (readToysFromHere == 0)) {
if (nuisances == 0) throw std::logic_error("Running with systematic variation in toys enabled, but I found floating parameters (which are not POIs) and no constraint terms have been defined in the datacard.");
if (nuisances == 0) throw std::logic_error("Running with systematic variation in toys (either generating nuisance parameters or generating auxiliary observables) enabled, but I found floating parameters (which are not POIs) and no constraint terms have been defined in the datacard. If this is fine, run again with --toysNoSystematics.");
nuisancePdf.reset(utils::makeNuisancePdf(expectSignal_ || setPhysicsModelParameterExpression_ != "" || noMCbonly_ ? *mc : *mc_bonly));
if (toysFrequentist_) {
if (mc->GetGlobalObservables() == 0) throw std::logic_error("Cannot use toysFrequentist without global observables");
Expand Down

0 comments on commit e88871c

Please sign in to comment.