From e794a7fd84dd28201904e01b839d0d02c9544e77 Mon Sep 17 00:00:00 2001 From: Andrea Marini Date: Fri, 20 Sep 2024 16:34:50 +0200 Subject: [PATCH] 14x comb2023 (#1004) * silencing ZZ complains * silencing ZZ complains on Asimov --- src/ToyMCSamplerOpt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ToyMCSamplerOpt.cc b/src/ToyMCSamplerOpt.cc index 63e7e4499af..a411599f606 100644 --- a/src/ToyMCSamplerOpt.cc +++ b/src/ToyMCSamplerOpt.cc @@ -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); @@ -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; }