Re: How to fill 2D from Ntuple?

From: Dmitry Onoprienko (onoprien@SLAC.stanford.edu)
Date: Wed Feb 03 1999 - 02:48:24 MET


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.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET