Bad chi square/ndf

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,
Fit_slit.C (4.4 KB)


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


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