Re: [ROOT] How to check if the histogram is empty?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 16 2003 - 19:05:26 MEST


Hi Mateusz,

If you have filled your histogram via TH1::Fill, you only need to call
TH1::GetEntries.

If you call SetBinContent, call TH1::GetSumOfWeights

see also TH1::GetStats

Rene Brun

Mateusz Ploskon wrote:
> 
> Hi,
> Small question, if I may...
> How one can quickly check if a histogram is empty ? (not iterating bins)
> (+ I know what GetEntries() returns...)
> 
> Thank You +
> Best regards,
> Mat



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