lego plot with weights

Nick van Eijndhoven (Nick@fys.ruu.nl)
Tue, 9 Sep 1997 11:33:43 +0200 (MET DST)


Dear ROOTers,
I have a TTree containing a.o. data for calorimeter cells.
A cell is specified by a row and column number (the usual matrix geometry)
and contains some signal.
To view an event I would like to plot row%column in a lego plot with the
signal as weight (= height of the bin).
How can I achieve this ?
The PAW equivalent would be : nt/plot 999.row%col signal

Within ROOT I tried : (h999 is my TTtree)

h999.Draw("ROW:COL:SIGNAL","EVENTNO==5","lego")

but the result is a 3d plot but not in the usual LEGO format, so that I
can't investigate the various signal heights from it.

Cheers,
Nick.
*----------------------------------------------------------------------*
Dr. Nick van Eijndhoven Department of Subatomic Physics
email : nick@fys.ruu.nl Utrecht University / NIKHEF
tel. +31-30-2532331 (direct) P.O. Box 80.000
tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht
fax. +31-30-2518689 The Netherlands
WWW : http://www.fys.ruu.nl/~nick Office : Ornstein lab. 172
----------------------------------------------------------------------
tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp.
tel. +41-22-7675857 (secr.) CH-1211 Geneva 23
fax. +41-22-7679480 Switzerland
CERN beep : 13+7294 Office : B 160 1-012
*----------------------------------------------------------------------*