Re: [ROOT] TTree::Draw and TObjArray

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 06 2000 - 22:40:55 MEST


Hi Greg,
With TTree::Draw, you can draw directly attributes if an attribute
has its own branch/leaf. THis is the case for TClonesArray.
You can also do t.Draw("event.Function(par....)")
where event is for example the name of your top level branch.
You should be able to call any member function of event.

Rene Brun



On Thu, 6 Jul 2000, Greg Novak wrote:

> I have an Event data structure stored in a TTree object.  Within the Event
> object are several arrays of objects.  In order to loop over them and make
> plots with the TTree::Draw method, is it necessary that the arrays be
> TClonesArrays as opposed to TObjArrays?  I can't find any documention
> about this point... 
> 
> Thanks!
> Greg
> 



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