How to get Likelihood when using L/LL in Fit?

I cannot find anywhere information, how to get likelihood from result of the fit in TH1::Fit() when using L/LL option. I will be grateful for any information :slight_smile:

OK, I found it myself. But perhaps you could add a function to TF1, like TF1::GetChisquare()?

For people that would be looking for that in the future, something like:

TFitResultPtr fptr = img_histo->Fit(mpsf, “RNLLS”);
cout << "likelihood " << fptr->MinFcnValue() << endl;