Bad chi square/ndf

Hello!
I’m trying to fit different data distribution with the same fit function.
The fits seem to be good, but the chi squares/ndf are not good.
I attach my code here. Someone could help me?
Thank you in advance,
Silvia
Fit_slit.C (4.4 KB)

Hi,

I see you are getting very small chi2 value. this is because the fit errors you are using are overestimated (too large) compared to the real statistical fluctuations

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.