From 430d180b183de719e720020644479137ed4e837d Mon Sep 17 00:00:00 2001 From: Phmonski Date: Fri, 31 Jul 2026 12:08:46 +0200 Subject: [PATCH] [XRF] Remove the silent change of the asimov null hypothesis --- roofit/xroofit/src/xRooNLLVar.cxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/roofit/xroofit/src/xRooNLLVar.cxx b/roofit/xroofit/src/xRooNLLVar.cxx index d1bf059351b38..f319fe5acab21 100644 --- a/roofit/xroofit/src/xRooNLLVar.cxx +++ b/roofit/xroofit/src/xRooNLLVar.cxx @@ -1775,14 +1775,6 @@ std::shared_ptr xRooNLLVar::xRooHypoPoint::asimov(boo // dynamic_cast(p)->removeRange("physical"); -- can't use this as will modify shared property if (auto v = dynamic_cast(p)) { v->deleteSharedProperties(); // effectively removes all custom ranges - if (v->getVal() == 0) { - // for discovery tests, we generate asimov at mu!=0 and then evaluate the two sided - // at some value of mu. Normally we would use mu=0 but if we have a bin - // with only signal contribution (no bkg) will get asimov data in that bin - // and no prediction ... the cfit(mu=0) will never succeed on this - // so lets move to half the alt value instead (the value used to generate) - v->setVal(theFit->constPars().getRealValue(v->GetName()) * 0.5); - } } }