[ROOT] TClonesArray / TRefArray

From: Bernhard KETZER (Bernhard.Ketzer@cern.ch)
Date: Mon Jul 01 2002 - 23:35:10 MEST


Hi Rooters!

I am trying to create a tree that contains as subbranches two
TClonesArrays, say *Tracks and *Hits, where Hits contains all hits in
the detectors, and tracks contains all tracks found (similar to the
Event example).

Now I would like that each track keeps a reference to its hits. I was
trying to add a TRefArray of *Hits to each track, which seems ok when I
am creating the tree. Reading back the tree, however, I get segmentation
violations. Is it possible at all to nest TClonesArrays and TRefArrays
in a tree, or did I miss something else?

Thanks for your help,

	Bernhard




This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:58 MET