Skip to content

Commit

Permalink
Suppress output in low verbose mode (#891)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Wardle <[email protected]>
  • Loading branch information
nucleosynthesis and Nick Wardle authored Dec 29, 2023
1 parent d46392a commit f32cb0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/CachingNLL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,12 @@ cacheutils::CachingSimNLL::setup_()
}
}

std::cout << "SimNLL created with " << nchannels << " channels, " <<
constrainPdfs_.size() << " generic constraints, " <<
constrainPdfsFast_.size() << " fast gaussian constraints, " <<
constrainPdfsFastPoisson_.size() << " fast poisson constraints, " <<
constrainPdfGroups_.size() << " fast group constraints, " <<
std::endl;
if (verb) {
CombineLogger::instance().log("CachingNLL.cc",__LINE__,std::string(Form(
"SimNLL created with %d channels, %d generic constraints, %d fast gaussian constraints, %d fast poisson constraints, %d fast group constraints.",
(int)nchannels, (int)constrainPdfs_.size(),(int)constrainPdfsFast_.size(),(int)constrainPdfsFastPoisson_.size(),(int)constrainPdfGroups_.size())),__func__);
}
setValueDirty();
}

Expand Down
2 changes: 1 addition & 1 deletion src/HybridNew.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void HybridNew::setupPOI(RooStats::ModelConfig *mc_s) {
}

bool HybridNew::run(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) {
RooFitGlobalKillSentry silence(verbose <= 1 ? RooFit::WARNING : RooFit::DEBUG);
RooFitGlobalKillSentry silence(verbose <= 1 ? RooFit::FATAL : RooFit::DEBUG);

//double minimizerTolerance_ = ROOT::Math::MinimizerOptions::DefaultTolerance();
//std::string minimizerAlgo_ = ROOT::Math::MinimizerOptions::DefaultMinimizerAlgo();
Expand Down

0 comments on commit f32cb0f

Please sign in to comment.