Hi,
I am fitting a distribution using a simple polynomial function of order 1 using RooPolynomial.
It is not such a good description of the distribution, but I am using it for simplicity to understand some errors.
The way I fit is:
fFitResult = fFitUnbin->fitTo(*data, RooFit::PrintLevel(-1),
RooFit::Range(xmin, xmax),
RooFit::NumCPU(4),
RooFit::SumW2Error(kTRUE),
RooFit::Save(true)
);
where fFitUnbin is a RooExtendedPdf.
Please find the fit attached and the errors below:
[#1] INFO:Eval -- RooRealVar::setRange(x) new range named 'our_window' created with bounds [110,170]
[#0] ERROR:Eval -- RooAbsReal::logEvalError(Polynomial) evaluation error,
origin : RooPolynomial::Polynomial[ x=x coefList=(coef1) ]
message : p.d.f normalization integral is zero or negative
server values: x=x=110.5, coefList=(coef1 = -0.00815491)
[#0] ERROR:Eval -- RooAbsReal::logEvalError(Polynomial) evaluation error,
origin : RooPolynomial::Polynomial[ x=x coefList=(coef1) ]
message : p.d.f normalization integral is zero or negative
server values: x=x=111.5, coefList=(coef1 = -0.00815491)
[#0] ERROR:Eval -- RooAbsReal::logEvalError(Polynomial) evaluation error,
origin : RooPolynomial::Polynomial[ x=x coefList=(coef1) ]
message : p.d.f normalization integral is zero or negative
server values: x=x=112.5, coefList=(coef1 = -0.00815491)
[#0] ERROR:Eval -- RooAbsReal::logEvalError(Polynomial) evaluation error,
And this is the not whole error. It complaints about this at many x values.
but from the plot I do not see anywhere pdf going negative.
Do you have an idea why do I get such errors if hte plot does not show any negative or 0 values
of pdf?
Any help will be appreciated.
Thanks in advance,
Shilpi