Re: TH3 binning

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 12 Apr 2006 14:19:27 +0200 (MEST)


To find the under/overflows in a TH3 (same in TH1, TH2), call

   h.GetBinContent(i,j,k);
with i=0 (or/and j=0 or/and k=0) for the underflows with i=NX+1 (or/and j=NY+1 or/and k=NZ+1) for the overflows, eg

   h(0,0,0) returns the number of underflows in x,y,z    h(0,j,k) returns the number of overflows in X for bin j in Y and k in Z

Rene

On Wed, 12
Apr 2006, Alberto Pulvirenti wrote:

> Dear rooters,
>
> I have a question about the "global" bin number in a TH3D.
> The question is: how many underflow/overflow bins are there in such a
> histogram? I think that it should not be just one, but something like one
> underflow and one overflow per each dimension.
> Is there a way to uniquely identify such an overflow bin?
>
> Thanks a lot and best regards.
>
> Alberto
>
Received on Wed Apr 12 2006 - 14:20:31 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET