Re: Integral over histogram bins by mouse click?

Rene Brun (Rene.Brun@cern.ch)
Wed, 17 Jun 1998 09:48:44 +0200


Ludger Janauschek wrote:
>
> Hello,
>
> is there (will there be) a possibility to get the integral over an
> interval of bins of a one dim. histogram by marking it by the mouse or by
> giving the boundaries in a dialog box (calling it with the right-button
> menue)?

When you select the option "Event Status" in the canvas "Option" menu,
the current object info reports some object attributes.
In case of histograms, the integral from bin 1 to the bin pointed
by the mouse is also reported.
I have modified my version (will be 2.00/09) to report the integral
from the low bin selected with the slider in the DrawPanel.
You can obtain the same result on the command line with
h->Integral(binmin,binmax);

Rene Brun