I have a problem using TGraphErrors:
Somehow the program doesn’ take errors in x-direction into account.
Here’s a simple example:
TCanvas *myc = new TCanvas(“myc”, “Fitting TGraphErrors”);
TGraphErrors *gre3 = new TGraphErrors(2, x, y, 0,ey);
TF1 ploynom=new TF1(“polynom”,“pol1”);
Everything is done correctly. But if I replace the 0 in TGraphErrors with ey, the error estimates stay the same even if I take very large errors like in this example. Why doesn’t root take the errors in x-direction into account for the error estimate?
Thanks for your help…