Accesssing fit parameters and errors

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Mon, 05 Feb 2007 13:14:34 -0330


Hello,

I write the parameters of a fitted TF1 into a root file. I need to recover the fit coefficients and their errors for tabulation, presentation etc.

I have the following questions:

(1) I can print the parameters using:

f->GetObject("fit",fForm)
fForm->Print()
(fForm being a pointer to the TF1)

Is there an easy way to export the coefficients into a text file? They will eventually go in a LaTeX document.

(2) I can access the errors on the fit coefficients as
fForm->GetParError(0) etc...
Am a correct in assuming the only way to access the errors is to loop over them?

Thanks,
Roger Received on Mon Feb 05 2007 - 17:46:58 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 05 2007 - 23:50:00 CET