Error : Invalid parameter specified for finding interval limits (While calculating Upper Limit)

Hello,
I’m currently doing calculating Upper Limit using RooStats.

what I want to do is calculating Upper Limit based on the below formula
UpperLimit_formula

and I wrote my code for calculating Upper Limit.

the code is attached below
UL_code.txt (2.9 KB)

And the result is like this…

I don’t know what is the problem exactly…
Any help would be appreciated!

Many thanks

Hi,

I think the issue is a badly definition of the model. Some of the parameters/functions are defined externally of the workspace and not imported there. I would suggest to import all the pdf and parameters in the workspace and then after that create the ModelConfig and call the RooStats calculators. Also if you provide the ModelConfig, you don’t need to call again plc.SetParameters(nsig). I would remove that line.

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.