Chi2 to histogram with bin-by-bin correlations

Hello

I have a histogram which bins contents are correlated one to each other. Now I would like to fit a function to this histogram. By using the chi2 fit method I know how to include correlations in the fit, but I am wondering if we have that already implemented in ROOT, so I can provide the histogram and the correlation matrix and perform the fit.

Thanks,
Eduard

Hi,

we don’t have this yet implemented in ROOT. You have to write your self the chi2 function and then you can minimize it using Minuit

Best Regards

Lorenzo