The problem is that your POI is set as a constant in your workspace. To make the script work, just call at the beginning, (before calling ProfileLikelihoodCalculator::GetInterval)
Thanks for the tip - Unfortunately, I still have issues…
[code][#1] INFO:Fitting – RooAbsTestStatistic::initSimMode: creating slave calculator #0 for state stop (22 dataset entries)
[#1] INFO:NumericIntegration – RooRealIntegral::init(stop_model_Int[obs_x_stop]) using numeric integrator RooBinIntegrator to calculate Int(obs_x_stop)
[#1] INFO:NumericIntegration – RooRealIntegral::init(stop_model_Int[obs_x_stop]) using numeric integrator RooBinIntegrator to calculate Int(obs_x_stop)
Error: Minimization failed
Error returned from minimization of likelihood function - cannot find interval limits
Printing results…xsec
FUNCTION MUST BE MINIMIZED BEFORE CALLING MINOs
PARAMETER NUMBER 23 NOT A VARIABLE. IGNORED.
THERE ARE NO MINOS ERRORS TO CALCULATE.
Warning: lower value for xsec is at limit 0
Warning: upper value for xsec is at limit 0
95% confidence interval on the point of interest xsec: [0, 3]
[/code]
Are you using the code you have posted ? That one works for me (ROOT version 5.34.07).
If you are using a different code or workspace, please upload it
Hi,
As I said before, you should add the line setting the parameter not constant before calling ProfileLikelihoodCalculator::GetInterval. here is however your script working