Re: How to fill 2D from Ntuple?

Dmitry Onoprienko (onoprien@SLAC.stanford.edu)
Tue, 02 Feb 1999 17:48:24 -0800


This seems to be the way TTree::Draw() is written for 2-dim distributions.
I don't know why, probably it would be better to call EventLoop with
action = 2 if the user supplies pre-defined histogram to fill (not action=-2
as it is done now).

A simple workaround is to call TTree::Draw() without supplying any
options ("lego" in your case), then draw your TH2F with any options
you like. Or, if you do need to have some options in the call to
TTree::Draw() ("goff" for example), append "same" to them.

- Dmitry.