Skip to content

Commit

Permalink
Update MultiDimFit.cc
Browse files Browse the repository at this point in the history
Fix double print out of points
  • Loading branch information
nucleosynthesis authored Apr 3, 2024
1 parent 11da69b commit d2770cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiDimFit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void MultiDimFit::doGrid(RooWorkspace *w, RooAbsReal &nll)
//if (verbose > 1) std::cout << "Point " << i << "/" << points << " " << poiVars_[0]->GetName() << " = " << x << std::endl;
//I suggest keeping this message on terminal as well, to let users monitor the progress
std::cout << "Point " << i << "/" << points << " " << poiVars_[0]->GetName() << " = " << x << std::endl;
CombineLogger::instance().log("MultiDimFit.cc",__LINE__,std::string(Form("Point %d/%d) %s = %f",i,points,poiVars_[0]->GetName(),x)),__func__);
if (verbose > 1) CombineLogger::instance().log("MultiDimFit.cc",__LINE__,std::string(Form("Point (%d/%d) %s = %f",i,points,poiVars_[0]->GetName(),x)),__func__);
*params = snap;
poiVals_[0] = x;
poiVars_[0]->setVal(x);
Expand Down

0 comments on commit d2770cd

Please sign in to comment.