Re: [ROOT] How to get fit parameters from root file

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jul 28 2000 - 19:17:36 MEST


Hi,
The fit parameters are lost in the conversion hbook->root.
You must fit again in the Root context. To access the fit parameters,
you must get a pointer to the fitted function, eg:
  TF1 *myfunc = (TF1*)hist->GetFunction("myfunc");
and then use the getters from TF1,TFormula to access the parameters.

Rene Brun


On Thu, 27 Jul 2000, Yongzhao Zhou wrote:

> Hi, Rooters,
> I have a khbook file there is a histogram(TH1F) which was fitted already
> with some parameters, such as, x2/ndf, p1, p2, p3, p4, and so on. Is the 
> relative root file transformed from it keeps these parameters too? And how
> can I get these parameters to display them in a fit box? Which root
> version I should use?
> Thanks for any help.
> Best Regards,
> Yongzhao Zhou
> 
> 
> ------
> Yongzhao Zhou, KLOE, LNF, INFN, Italy
> Tel:39-06-94032696 Fax:39-06-94032427
> 
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET