TRatioPlot error

Hi everyone,

I need to plot the difference between my data in histogram and the fitting curve. My fit function is a sum of gaussian and landau functions defined over two separate ranges. I am using TRatioPlot but I get the following error: “Cannot compute confidence intervals with an invalide fit result”. Can anyone help me out with it?
I am attaching my result.
Also, it looks like the gaussian and the landau fits individually converge but for the total fit I get the warning “Abnormal termination of minimization”. Are they any way related?
ratioploterror.pdf (22.2 KB)

This error message comes from hist/hist/src/TBackCompFitter.cxx. It does not seem to be related to TRatioPlot. May be @moneta has an idea.

If your fit is invalid, because you have an abnormal termination of the minimisation, which can be caused by large error in computing your function or bad initial starting values, you cannot compute any confidence intervals, since the resulting error and covariance matrix are not valid and correct

Best regards


Hi Lorenzo, is there a way to fix the fit? I just used the gaussian and landau fits in different subranges and added them as given under “Fitting Multiple Sub Ranges” in Chapter: FittingHistograms.

Hi all,
I have solved the error by setting the initial values myself so now the fit converges and I don’t get any error. Thank you!