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.
Tina
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.
Tina
Hi,
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?
Cheers,
Tina.
Hi Tina,
see http://root.cern.ch/root/html518/TH1.html: no But you might be able to implement it yourself: justtake the algorithm from the trunk (see root.cern.ch/root/html/src/TH1.cxx.html#UdxrFB and the function it calls).
Or, better yet: update your pretty old version of ROOT!
Cheers, Axel.