Re: Event with TClonesArray containing another TClonesArray
Rene Brun (Rene.Brun@cern.ch)
Fri, 20 Feb 1998 17:09:44 +0100
Dirk Meier wrote:
>
> Hi,
>
> I am writing events (of a class DEvent) to a TTree.
> The DEvent contains a "TClonesArray* fPlanes",
> and once created with new TClonesArray("DPlane",1).
> (like described in a tutorial)
> This works and I find fPlane objects in the tree.
>
> Now, I introduce in class DPlane a "TClonesArray *fHits",
> created once in the DPlane implementation
> with new TClonesArray("DHits",1).
>
> Running the programm root says
> Warning in <TBranchClones::BranchClones>: Cannot process member:fHits
>
> Is it possible to store cloned objects which contain other
> cloned objects to a tree? Do you have an example?
Dirk,
No, A TClonesArray in split mode can only contain objects
with data members being basic data types.
See URL:
http://root.cern.ch/root/HowtoWriteTree.html
Rene Brun