Error Integral TH1F

Hi rooters,

I would like to obtain the integral of a TH1F object with its relative error.
I’ve tried to use the Integral method, but I haven’t found the right option in order to obtain the error.

Can you help me?

Thanks in advance.



did you see TH1::IntegralAndError()? If it does it not do what you want, could you specify what is missing / not working?

Cheers, Axel.

I’m using Root 5.18 … I think there isn’t this method, right?


Hi Tina,

see no :frowning: But you might be able to implement it yourself: justtake the algorithm from the trunk (see and the function it calls).

Or, better yet: update your pretty old version of ROOT! :slight_smile:

Cheers, Axel.