Hi Karla,
I would need eventually your root file to run your code. I see however an error at line 121,
> cout << " N in peak = "<<myfit->GetParameter(1)<<" +/- "<<myfit->GetParError(0)<<endl;
should be: myfit->GetParameter(0)
I see also that you compute your-self the t distribution. For your information, in ROOT we have a function providing it, ROOT::Math::tdistribution_pdf(double x, double r)
Regards
Lorenzo
On Feb 3, 2010, at 9:30 PM, Karla Beatriz Cantun Avila wrote:
> > Thank you Lorenzo! > > Attached to this mail you may found my macro, > I am using a TSudent function to fit signal, and a polinomial of second order to fit background. > > Again thanks for your time! > > Cheers, > karla > > On Wed, 3 Feb 2010, Lorenzo Moneta wrote: > >> Dear Karla, >> >> The proper normalization depends how you have defined exactly your function. I would need your complete example in order to help you, >> >> Best Regards >> >> Lorenzo >> On Feb 3, 2010, at 6:34 PM, Karla Beatriz Cantun Avila wrote: >>
>> >> > <FitTest.C>Received on Wed Feb 03 2010 - 22:04:31 CET
This archive was generated by hypermail 2.2.0 : Wed Feb 03 2010 - 23:50:01 CET