Skip to content

Commit

Permalink
[RF] Force BatchMode off in test that covers legacy test statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Oct 22, 2022
1 parent f79ff59 commit d6043c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roofit/roofitcore/test/testTestStatistics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,10 @@ TEST(RooNLLVar, CopyRangedNLL)

std::unique_ptr<RooDataSet> ds{model.generate(x, 20)};

std::unique_ptr<RooNLLVar> nll{static_cast<RooNLLVar *>(model.createNLL(*ds))};
std::unique_ptr<RooNLLVar> nllrange{static_cast<RooNLLVar *>(model.createNLL(*ds, RooFit::Range("fitrange")))};
// This bug is related to the implementation details of the old test statistics, so BatchMode is forced to be off
using namespace RooFit;
std::unique_ptr<RooNLLVar> nll{static_cast<RooNLLVar *>(model.createNLL(*ds, BatchMode("off")))};
std::unique_ptr<RooNLLVar> nllrange{static_cast<RooNLLVar *>(model.createNLL(*ds, Range("fitrange"), BatchMode("off")))};

auto nllClone = std::make_unique<RooNLLVar>(*nll);
auto nllrangeClone = std::make_unique<RooNLLVar>(*nllrange);
Expand Down

0 comments on commit d6043c3

Please sign in to comment.