Re: Branch TClonesArray of TClonesArray
Rene Brun (Rene.Brun@cern.ch)
Thu, 02 Jul 1998 08:47:09 +0200
Norbert Danneberg wrote:
>
> HI Rooters,
>
> in a earlier posting in this newsgroup Rene Brun wrote
>
> > No, A TClonesArray in split mode can only contain objects
> > with data members being basic data types.
>
> Is it possible to write TClonesArrays of TClonsArrays into a TTree if
> you split it by hand with TTree::Branch() ?
>
> If I do branch my TTree this way are the Objects the last TClonesarray
> points to then accessible via the Broswer and the Draw() Member
> function?
>
Yes, you can have TclonesArray of TClonesArray if you create by hand
a branch for each top TClonesArray. Note that the top level array
in this case does not need to be a TClonesArray, a TObjArray
is sufficient.
Via the Root browser TBrowser, you will see one branch for each
top level TClonesArray or TObjArray. If you click on one branch,
you will see all the leaves of the final TClonesArray.
Rene Brun