tag v6-18-00, 25 June 2019
Illustration, with a minimum program, of a reproducible crash of roofit when using plotOn of a pdf that was fitted in an intermediate step in a restricted range and refitted in a full range
plotOn complains and crash with the message
1 INFO:Plotting – RooAbsPdf::plotOn(Pdf_Bkg_exppol2) p.d.f was fitted in range and no explicit plot,norm range was specified, using fit range as default
0 WARNING:InputArguments – RooStringVar::setVal(rangeName): new string too long and ignored
0 WARNING:InputArguments – RooStringVar::setVal(normRangeName): new string too long and ignored
//the crash does not happen if one does not do many toys before doing the final part that makes the crash
Attached code and attached log.
My code is really academically written, so fixing the bug internally to roofit would be very important, else it prevents any toys study with roofit, with mixing full and restricted range fit.