Re: 4-levels Tree

Pasha Murat (murat@cdfsga.fnal.gov)
Thu, 30 Apr 1998 11:28:33 -0500 (CDT)


> > 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.

If I understand the question correctly it asks if an element
of a TClonesArray could be a TClonesArray (or TObjArray or TList...)
itself. The answer is yes.
Regards, Pasha.