Hi Farah,
I assume histo is an array or a vector of pointers to 1d histograms
There are 2 solutions :
- if you use histo[nh]->Fit("gaus")
you can get a pointer to your gaus function with :
TF1 *fun = histo[nh]->GetFunction("gaus")
fun->GetParameter(2)
- you can also create the function before fitting :
TF1 fun("gaus")
histo[nh]->fit(&fun,"R")
fun.GetParameter(2)
cheers,
Colin
On Mon, 16 Dec 2002, Farahnaaz Nauyock wrote:
> Hi there,
>
> I wondered whether someone knows how to get the root mean square width of
> a fitted function by using the histo[nh]->GetParameters(?) method, just
> like one can use GetParameters(0/1/2) to get the chi-square/mean/sigma of
> the function.
>
> Thanks in advance,
> Farah
>
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET