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

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed May 05 2004 - 14:59:54 MEST


Hi Bill,

I do not understand this problem. Could you send
  -a very short data file
  -a short script showing the problem

Rene Brun

> William Love wrote:
> 
>  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