Dear experts,
I have to extract the minimum value of the likelihood after a fit.
I can do it in two ways:
- use RooFitResult::minNll()
- use RooAbsPdf::createNLL() and then get its value.
This two give a different result… can anyone tell me why?
I also checked that the parameters are the ones at minimum by
params = pdf->getParameters()
and then
nll->getVal(*params)
And I get same result as with empty getVal().
Any help would be very appreciated.
Cheers,
Luca