we can get the fit status (integer, bool and string) as indicated in the following code.
TFitResultPtr r = h->Fit(myFunc,opt); Int_t fitStatus = r; TString minuit_status_string = gMinuit->fCstatu; bool isValid = r->IsValid();
however, there are several situations where
r=4140(i believe it is a problem) but
r=4000',string=SUCCESSFUL` but plotting out the fit revealed it is problematic.
as i am fitting alot of data, i cannot afford to check all the fits. I want a reliable way to tell if a particular fit is OK.
my question is: which one is the reliable one ?