Minization --RooFitGlue: Minimized function has error status


I am a beginner in roofit and I am fitting a resonance using RooAddPdf (Gaussian and Polynomial) for the signal & background. However, while running the code, I get the following error:

[#0] WARNING:Minization – RooFitGlue: Minimized function has error status.
Returning maximum FCN so far (14367.8) to force MIGRAD to back out of this region. Error log follows
Parameter values: b=-0.000506632, fsig=0.5, mean=1865, sigma=20
RooAddPdf::model[ fsig * sig + [%] * bkg ] has 114 errors
RooPolynomial::bkg[ x=d0Mass coefList=(b) ] has 57 errors

I cannot really conclude to what could be causing it. Any hint??

thanks in advance,

I don’t know if it’s your problem but I suggest you check if the total PDF you get is positive defined with the parameters you are obtaining. Except that I have no idea…

– Gregory


I realized that I had to play with the parameters of the pdf. Choosing better ones make this warning disappear.


How did you adjust the parameters of the PDF? I’m getting the same error and would love to know. It might help me (on this thread: Two-fraction binned fit with RooFit not working)