Re: 4-levels Tree

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 30 1998 - 18:16:48 MEST


valeri@na.infn.it wrote:
> 
> Dear rooters,
> 
> I'd like to create the tree like:
> 
>         Tree
>           |
> 1        EventBody,Ntracks
>                       |
> 2                TrackBody,Ncnd
>                             |
> 3                        CandidatBody,Nelements
>                                          |
> 4                                     ElementBody
> 
> Here
> each Body is the structure,
> each N could take value from 0 to 100.
> 
> I know that for level 2 (tracks) use of TClonesArray is recommended:
> $ROOTSYS/test/Event.
> 
> But for more levels 3 and 4 should it works the same?
> 
> Are there any example of the  tree  with more than 1 level
> variable-length arrays?

This cannot work in split mode. In your example, everything
from level 1 downwards must be in one single branch.
The split at level 2 can only work if the items in the TClonesArray
are really clones. They cannot themselves have a dynamic structure.
But, you can have several branches at level 1 in the same Tree.

Rene Brun



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