Skip to content

Commit

Permalink
14x comb2023 (#1004)
Browse files Browse the repository at this point in the history
* silencing ZZ complains

* silencing ZZ complains on Asimov
  • Loading branch information
amarini committed Sep 20, 2024
1 parent 112dc1e commit e794a7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ToyMCSamplerOpt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ toymcoptutils::SinglePdfGenInfo::generateWithHisto(RooRealVar *&weightVar, bool
RooCmdArg ay = (y ? RooFit::YVar(*y) : RooCmdArg::none());
RooCmdArg az = (z ? RooFit::ZVar(*z) : RooCmdArg::none());

freopen("/dev/null", "w", stdout); // AMARINI
if (histoSpec_ == 0) {
histoSpec_ = pdf_->createHistogram("htemp", *x, ay, az);
histoSpec_->SetDirectory(0);
Expand Down Expand Up @@ -265,6 +266,7 @@ toymcoptutils::SinglePdfGenInfo::generateWithHisto(RooRealVar *&weightVar, bool
if (!keepHistoSpec_) { delete histoSpec_; histoSpec_ = 0; }
//std::cout << "Asimov dataset generated from " << pdf_->GetName() << " (sumw? " << data->sumEntries() << ", expected events " << expectedEvents << ")" << std::endl;
//utils::printRDH(data);
freopen("/dev/tty", "w", stdout);
return data;
}

Expand Down

0 comments on commit e794a7f

Please sign in to comment.