Hi root experts,
I’m trying to deal with a simple likelihood problem in roofit/roostats and I’m facing a problem (code is also attached).
What I do is to construct a model and call the ProfileLikelihoodCalculator on it. After that I SetConfidenceLevel and I plot using the LikelihoodIntervalPlot, until now everything fine. As a next step I want to further manipulate what I plotted, so I use the GetPlottedObject in this way:
RooPlot rh = (RooPlot) plot.GetPlottedObject();
How can I further use this RooPlot as a histogram or function? I have tried getHist in numerous ways but I always end up with “segmentation violation”.
Thanks in advance,
loglike.C (1.11 KB)