RootTalk


ROOT Discussion Forums

Error Integral TH1F

Discuss the ROOT documentation here.

Moderator: rootdev

Error Integral TH1F

Unread postby tweety84 » Fri Jun 25, 2010 14:51

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
tweety84
 
Posts: 25
Joined: Fri Nov 21, 2008 11:34
Location: Naples, Italy

Re: Error Integral TH1F

Unread postby Axel » Fri Jun 25, 2010 16:30

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.
User avatar
Axel
 
Posts: 2070
Joined: Wed Sep 03, 2003 21:35
Location: CERN

Re: Error Integral TH1F

Unread postby tweety84 » Fri Jun 25, 2010 17:44

I'm using Root 5.18 ... I think there isn't this method, right?

Cheers,
Tina.
tweety84
 
Posts: 25
Joined: Fri Nov 21, 2008 11:34
Location: Naples, Italy

Re: Error Integral TH1F

Unread postby Axel » Mon Jun 28, 2010 13:34

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 http://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.
User avatar
Axel
 
Posts: 2070
Joined: Wed Sep 03, 2003 21:35
Location: CERN


Return to ROOT Documentation

Who is online

Users browsing this forum: No registered users and 1 guest