How to find error bars of histogram data points from root file

Hi Everyone,
Happy New Year!

I want to find the error bars of data points in the x- and y- axes to plot a TGraph with error bars. Please suggest how can I calculate this from the root histogram (attached root file). In the attached root file I need error bars of “dN_dPt” histogram data points with a logarithmic scale on the y-axis.

Thanks

ampt_test1000_output.root (14.6 KB)

Your histogram has errors bars:

dNp_dPt->Draw();

gives:

to retrieve the error for one bin you can use GetBinError

Thank you @couet

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