Hi,
I want to access to the fit parameters once a TGraph is fitted with a gaussian. I am using GetFunction but it doesn't work. Bellow is my program. It displays the fit parameters but then if I use GetFunction as in the program bellow, it breaks when it gets the parameters. Could you help me to find the errors. A piece of the program is bellow:
TGraph *n= new TGraph(8,sig,l); n->Fit("gaus","V"); TF1 *myfunc=n->GetFunction("n"); Double_t p0=myfunc->GetParameter(0); Double_t p1=myfunc->GetParameter(1); Double_t p2=myfunc->GetParameter(2); **********************
Julia
Disclaimer:
This message and its attached files is intended exclusively for its recipients and may contain confidential information. If you received this e-mail in error you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In this case, please notify us by a reply and delete this email and its contents immediately.
This archive was generated by hypermail 2.2.0 : Wed Sep 29 2010 - 17:50:01 CEST