Hello, I’ve got a problem fitting a Graph with errors in x-values and y-values. ROOT takes only the errors on the y-values to fit, the error on the x-values are ignored by ROOT, doesnt matter how big they are.
I fit with the:
(g is the Graph)
Errors in x are taken into account during the fit.
Are you using a TGraph, TGraphErrors, …?
Could you send the shortest possible RUNNING script reprpducing your problem?
“F” If fitting a polN, switch to minuit fitter (by default, polN functions are fitted by the linear fitter)
g->Fit(“pol1”,“F”)
minuit takes both (x, y) errors