Hi,
you can do in this way:
TGraph *g1 = new TGraph(n,vx,vy);
g1->Fit("F1");
where n= dimension of vectors
vx is your x vector;
vy is your y vector;
F1 is a funtion that you define with the class TF1 for example: TF1 *f1 = new TF1("F1","pol5",0.,10.);
Regards,
SM
Il giorno mer, 15/09/2010 alle 14.29 -0500, jhkim_at_physics.utexas.edu ha
scritto:
> Hi,
>
> Is there any any to directly fit a ntuple plot?
>
> Best,
>
> JK
>
Received on Thu Sep 16 2010 - 09:25:32 CEST
This archive was generated by hypermail 2.2.0 : Sun Sep 19 2010 - 05:50:02 CEST