Fit results from a TGraph?

Hello,

    I'm trying to obtain the full fit results after fitting a plot, but it's not working out

in a manner I’d have expected from reading the documentation. Is there some way to
obtain these results ?

                                                    Kyle.

TGraphErrors *xGr1 = new TGraphErrors(n,x,y,ex,ey);
TFitResult pxR = xGr1->Fit(“pol3”,“S”);
pxR->Print(“V”);

results in :-

Warning: Automatic variable TFitResult pxR is allocated Evaluate.c:67:
Error: Symbol pxR is not defined in current scope Evaluate.c:68:
Error: Failed to evaluate pxR->Print(“V”)
*** Interpreter error recovered ***

Hi,

which version of ROOT are you using ? The class TFitResult is available only for versions >= 5.26

Lorenzo

Thanks Lorenzo,

 that's the problem, I'm currently using version 5.22 which is part of the Atlas software

version I’m working with. I checked the docs for that version & I should be able to get the
info I need an alternate way,

                                                             Cheers,
                                                                  Kyle.