RE: [ROOT] TTree::Draw

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Oct 31 2001 - 16:33:54 MET


Hi Giuseppe,

Before call tree.Draw, you should create an histogram named 'h1'
that has the property you need:

	TH1F * h1ptr = new TH1F("h1","my h1 histogram", nbin, xmin, xmax);

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Giuseppe Lo Re
Sent: Wednesday, October 31, 2001 9:05 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] TTree::Draw


Hi people,
using a line like 
tree.Draw("x>>h1","x>0")
Draw produces an histogram h1.
How can I set the bin number and the limits?
Thanks,
	Giuseppe



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:05 MET