Re: [ROOT] Printing of overflow and under flow bin

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 06 2000 - 00:14:03 MEST


Hi Stefan,
What about the two following options
 - "all" prints all channels including under/overflows
 - "range" prints all channels in the current range (by default 1-->Nbins)

Rene Brun


On Wed, 5 Jul 2000, Stefan Stonjek wrote:

> Hello!
> 
> The following macro give different results for different Root versions:
> 
> ======================== Macro ===================================
> // Test Macro
> void overflow_test(void)
> {
>   gROOT->Reset();    
>   TH1F *histo = new TH1F("test","Test Histogram",3,1,4); 
>   histo->Sumw2();
>   histo->Fill(5.0,1.0);
>   histo->Print("all");
> }
> ===================================================================
> 
> --------------------------- Root 2.00/13 --------------------------
> TH1.Print Name= test, Total sum= 0
>  fSumw[0]=0, error[0]=0
>  fSumw[1]=0, error[1]=0
>  fSumw[2]=0, error[2]=0
>  fSumw[3]=0, error[3]=0
>  fSumw[4]=1, error[4]=1
> -------------------------------------------------------------------
> 
> +++++++++++++++++++++++++++ Root 2.23/12 ++++++++++++++++++++++++++
> TH1.Print Name= test, Entries= 1, Total sum= 0
>  fSumw[1]=0, x=1.5, error=0
>  fSumw[2]=0, x=2.5, error=0
>  fSumw[3]=0, x=3.5, error=0
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> The newer version gives you the central x-value for each bin but the old
> version gives you the over- and underflow bin. Is ther any way in the new
> versions to get the over- and underflow information besides asking for the
> bin explicitly?
> 
> Tschuess
> 	Stefan
> 
> *********      Stefan  Stonjek     *********
> *****            DESY / ZEUS           *****
> *****      Stefan.Stonjek@desy.de      *****
> *********  Tel.: +49-40-8998-3159  *********
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET