Re: [ROOT] How to know whether a histogram has ZERO entries?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jul 15 2002 - 21:37:21 MEST


Could you precise your question?  Where do you want to get the output?
in an array? I assume that your histograms have each a different
number of entries.

Rene Brun

On Sun, 14 Jul 2002, Jyothsna Rani wrote:

> 
> I would like to know whether I can get the entries for all the histograms
> with only ONE command.
> 
> Let jet1, jet2 .....jet10 be 10 histograms.
> Is it possible to get the entries for all of them with only one command,
> viz, jet*->GetEntries() (using some wild card)???
> 
> Thanks,
> Jyothsna
> 
> On Mon, 15 Jul 2002, Sebastien Greder wrote:
> 
> > Hello,
> > 
> > just simply do : 
> > 
> > histoname->GetEntries();
> > See:
> > http://root.cern.ch/root/html/TH1.html#TH1:GetEntries
> > Same method name for TTree.
> > 
> > Cheers,
> > seb.
> > 
> > On Sun, 14 Jul 2002, Jyothsna Rani wrote:
> > 
> > > 
> > > Hi,
> > > 
> > > Is there simple way to know the number of entries of a histogram or a
> > > variable in an ntuple?
> > > 
> > > Thanks,
> > > Jyothsna
> > > 
> > > 
> > 
> > 
> > 
> 
>    -------------------------------------------------------------
> 	K. Jyothsna Rani, 	Phone Number:
> 	Tata Institute,			630-840-3590 (Office)
> 	DZero Experiment,		630-840-4236 (Residence)
> 	Mail Station : 352,	FAX:
> 	P.O.Box : 500,			630-840-8481
> 	Fermilab, 		E-mail:
> 	Batavia, IL - 60510		jyothsna@fnal.gov
>   ---------------------------------------------------------------
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET