Re: [ROOT] Integral of function

From: Edmond Offermann (edmondoffermann@yahoo.com)
Date: Wed Oct 15 2003 - 11:08:20 MEST


Hi ,

The integral of the TF1 function is indeed 1902 !
But you are looking at the histrogram contents,
so you have to correct the number with the
bin width. Looking at hpx in hsimple.C, it is
8/100.

So histogram contents is 1902.38 * 100./8.

Eddy

--- Ji Li <liji@jlab.org> wrote:
> 
> Dear rooters,
> 
>      I have a question concerning the integral of a
> user defined function.
> I ran myfit.C in the tutorials directory, the
> integral return value is
> 1902.83. Apparently there are much more events under
> that curve. Am I
> missing something? Thank you very much for your
> help.
> 
> Ji Li                              _/_/_/_/_/     _/
> Physics Department                        _/     _/ 
> Rensselaer Polytechnic Institute         _/     _/ 
> Tel:(757)269-5328(JLab Office)      _/_/_/    
> _/_/_/_/_/
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET