Hello, I have trouble accessing the fit results of some simple pol0 and pol1 fits:
for example on my noise data, I want to use a simple pol0 fit to get the average:
TFitResult r = gr->Fit("fa1", "RS");
Double_t par0 = r->Parameter(0);
as it is used on the TGraph documentation page.
However the last line reports this error:
[quote]Warning: wrong member access operator ‘->’ C:…\xx.C(36)
Error: Symbol #include is not defined in current scope C:…\xx.C(36)
Error: Symbol exception is not defined in in current scope C:…\xx.C(36)
Syntax Error: #include (exception) C:…\xx.C(36)
Error: Symbol G__exception is not defined in current scope C:…\xx.C(36)
Error: type G__exception not defined FILE:C:…\xx.C(36)
*** Interpreter error recovered ***[/quote]
the fit works though, I get all the right data in the console output of Fit()