I’m new to ROOT and was hoping someone could help me with this problem.
I’ve been fitting user-defined functions to histograms of data. I define the function in a separate macro and use Fit() to fit it to the histogram.
This seems to work fine but now I want to make a plot of the fit residuals: a plot of the difference between the bin contents and the value of the fit function, plotted with the errors associated with the bin contents.
There seems to be no simple way of doing this. In particular, I can’t find any way to get the value of the fit function from a certain bin.
I thought there must be a simple way to make these simple plots!
Thanks in advance,