Hi Bernhard, In addition to Christian example, you can find another example in the attachemet jets.tar.gz. An Event class with a list of Jets having tracks having hits and using TRefArray. goE is a small script (Linux) generating teh shared lib. write.C a small script creating a Tree. Rene Brun On Mon, 1 Jul 2002, Bernhard KETZER wrote: > 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