Skip to content

Commit

Permalink
[RF] Enable the new BatchMode by default to see what still fails
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Oct 25, 2022
1 parent a4ddea0 commit 6a5d2f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions roofit/roofitcore/src/RooAbsOptTestStatistic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ void RooAbsOptTestStatistic::initSlave(RooAbsReal& real, RooAbsData& indata, con
if(auto pdfClone = dynamic_cast<RooAbsPdf*>(_funcClone)) {
pdfClone->setNormRange(rangeName);
}
// set the normRange for all the PDFs in the computation graph
//RooArgList nodeList;
//_funcClone->treeNodeServerList(&nodeList);
//for(RooAbsArg * node : nodeList) {
//if(auto nodePdf = dynamic_cast<RooAbsPdf*>(node)) {
//nodePdf->setNormRange(rangeName);
//}
//}

// Print warnings if the requested ranges are not available for the observable
for (const auto arg : *_funcObsSet) {
Expand Down
2 changes: 1 addition & 1 deletion roofit/roofitcore/src/RooAbsPdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ RooAbsReal* RooAbsPdf::createNLL(RooAbsData& data, const RooLinkedList& cmdList)
pc.defineSet("glObs","GlobalObservables",0,0) ;
pc.defineInt("doOffset","OffsetLikelihood",0,0) ;
pc.defineSet("extCons","ExternalConstraints",0,0) ;
pc.defineInt("BatchMode", "BatchMode", 0, 0);
pc.defineInt("BatchMode", "BatchMode", 0, 1);
pc.defineDouble("IntegrateBins", "IntegrateBins", 0, -1.);
pc.defineMutex("Range","RangeWithName") ;
pc.defineMutex("GlobalObservables","GlobalObservablesTag") ;
Expand Down

0 comments on commit 6a5d2f1

Please sign in to comment.