Re: [ROOT] new histogram binning option for TTree->Draw() does not work

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jan 26 2002 - 22:09:29 MET


Hi Juergen,

Thanks for reporting this problem. Now fixed in CVS.

Rene Brun

On 26 Jan 2002, Juergen Hannappel wrote:

> Hello
> i am experiencing a problem with the new option to define the binning
> for the histograms created by TTree->Draw("stuff>>h(binx,xlow,xhigh)")
> option. The number of bins is correct, but the range is ignored,
> both with the latest CVS version and the pro version from AFS.
> 
> hannappe@lisa2:~ > root  out.root 
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.03/00   26 January 2002   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> FreeType Engine v1.x used to render TrueType fonts.
> Compiled for linux with thread support.
> 
> CINT/ROOT C/C++ Interpreter version 5.15.28, Jan 20 2002
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] 
> Attaching file out.root...
> root [1]  bridge->Draw("cand_dydz>>l(10,0,1)");
> <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> root [2] l->Print("all")
> TH1.Print Name= l, Entries= 23811, Total sum= 23811
>  fSumw[0]=0, x=-3.6
>  fSumw[1]=0, x=-2.9
>  fSumw[2]=0, x=-2.2
>  fSumw[3]=7, x=-1.5
>  fSumw[4]=64, x=-0.8
>  fSumw[5]=23590, x=-0.1
>  fSumw[6]=123, x=0.6
>  fSumw[7]=26, x=1.3
>  fSumw[8]=1, x=2
>  fSumw[9]=0, x=2.7
>  fSumw[10]=0, x=3.4
>  fSumw[11]=0, x=4.1
> root [3] 
> 
> 
> -- 
> Dr. Juergen Hannappel          http://lisa2.physik.uni-bonn.de/~hannappe
> mailto:hannappel@physik.uni-bonn.de  Phone: +49 228 73 2447 FAX ... 7869
> Physikalisches Institut der Uni Bonn Nussallee 12, D-53115 Bonn, Germany     
> CERN: Phone: +412276 76461 Fax: ..77930 Bat. 892-R-A13 CH-1211 Genève 23
> 
> 



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