Well, it is possible that my problems with the TVirtualFitter are also related to these threads (where one demonstrates that the “TFitResult::Status ” method misbehaves, returning improper value):
I posted this in the Pyroot subforum earlier, someone suggested I cross post it here.
I’m running a bunch of fits on a data set, defaulting to a Gaussian fit. However, sometimes that default fit fails to converge, in which case I would like to run a linear fit. I can’t seem to read the status of the failed fit though.
status = fit_hist.Fit("gaus","S")
print "Status1? ", status.Status()
if status==1:
status = fit_hist.Fit("x++","S")
print status.Status()
This always re…
I’m running a bunch of fits on a data set, defaulting to a Gaussian fit. However, sometimes that default fit fails to converge, in which case I would like to run a linear fit. I can’t seem to get the fit status to read out.
status = fit_hist.Fit("gaus","QS")
print "Status? ", status
if status==1:
status = fit_hist.Fit("x++","S")
print status
This returns:
How can I get a sensible output out of this.