Of course, this seems to be some work...
But zooming a histo. is a very common action of users, I guess, and
interactive
zoom with the slider is not precise at all, so there should be an easy
way to do it.
Is someone sharing this point of view ?
> > 2) What about a TH1::GetIntegral(xmin,xmax) function to have to sum of
> > weights between xmin and xmax ?
>
> I would prefer TH1::GetIntegral(binx1,binx2) and same for 2-D.
> Otherwise if xmin,xmax do not coincide with the lower/upper limits
> of a bin, do you expect this function to compute an approximation
> for the integral in the bins at the edge, or do you simply want
> to compute the bin number where xmin and xmax (bin1,bin2)correspond
> and return the integral as the suim of bin contents from bin1 to bin2
> included?
Agree. TH1::GetIntegral(bin1,bin2) would be nice enough.
-- APHECETCHE Laurent (mailto:aphecetche@ganil.fr) GANIL, B.P. 5027, 14076, Caen Cedex 5, France Vox: +33 (0)2 31 45 45 85 - Fax: +33 (0)2 31 45 46 65 WWW: http://ganp03.in2p3.fr/nof/ & (perso.) http://www.mygale.org/~p0mp0n