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); - } } }