[ROOT] How to TTree->draw clones array variables?

From: William Love (love@bnl.gov)
Date: Tue May 04 2004 - 22:18:15 MEST


 Rooters
  I have been caught by this several times.  I fill a root TTree including a
 TClones array called Tracks[].  The length of the array for each event 
 is in a variable Ntrack.  If I histogram Ntrack for 40 events I see an 
 average of 415 entries per event or about 16600 tracks total.  
  If however I do TTree->Draw("Tracks.phi") I get 21671 entries in the
 histogram and many are identical copies of phantom tracks from other
 events.  Is there a simple (Short of TTree->MakeClass) way to tell
 Draw() to use the NTrack variable to limit the number of members of 
 the Track[] array it uses?
                                    Bill Love
 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET