Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions roofit/xroofit/src/xRooNLLVar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1775,14 +1775,6 @@ std::shared_ptr<xRooNLLVar::xRooHypoPoint> xRooNLLVar::xRooHypoPoint::asimov(boo
// dynamic_cast<RooRealVar *>(p)->removeRange("physical"); -- can't use this as will modify shared property
if (auto v = dynamic_cast<RooRealVar *>(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);
}
}
}

Expand Down
Loading