Re: 4-levels Tree

Rene Brun (Rene.Brun@cern.ch)
Thu, 30 Apr 1998 18:16:48 +0200


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