Re: [ROOT] How to rebin the ntuple->Draw

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Apr 09 2000 - 14:53:21 MEST


Binning is automatic with TTree::Draw unless you fill a predefined
histogram.
See documentation of TTree::Draw
example
   TH1F *h1 = new TH1F("h1","title, nbins, xmin,xmax)
   t.Draw("var>>h1")
will histogram variable var into predefined histogram h1

Rene Brun


On Fri, 7 Apr 2000, Vitaliy Ziskin wrote:

> 
> 	What determines the binning when I draw the ntuple and is there
> any way to change the binning.
> 
> 			Thanks, Vitaliy
> 
> =====================================================================
> Vitaliy Ziskin                                Tel: (617)253-7065
> MIT 26-547                          http://www.lns.mit.edu/people/vziskin/      
> 77 Massachusetts Ave
> Cambridge, Ma
> 02139
> ======================================================================
> 	"The memories of a man in his old age
>          Are the deeds of a man in his prime"--Pink Floyd
> 
> 



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