Hi,
I’m fitting a distribution (dijet invariant mass) obtained with a Monte Carlo simulation with an analytic formula. The histogram is filled with unweighted events but is normalized to unit area. The fit is performed in a limited range (3-10 TeV), but the histogram has a broader range (0-10 TeV). I want to calculate the chi2/dof between the fitted function and another histogram that I created with a different simulation. It seems very cumbersome to do that, as TH1::Chi2Test() only accepts a TH1 as an argument, and TH1::Chisquare() does not return the DOF. Is there any other way to do this?
Sincerely,
Riccardo
_ROOT Version: 6.14/06
_Platform: Ubuntu 13
_Compiler: pyroot / gcc-7.3.0 / python 2.7