[ROOT] Tree with nested TObjArray, TClonesArray

From: Bernhard Ketzer (Bernhard.Ketzer@cern.ch)
Date: Sun Oct 08 2000 - 22:41:12 MEST


Hi all,

I am trying to create a tree with several nested branches, like

Event -> Plane -> Hit -> Position, Amplitude, etc.

For the last level ("Hit") I understand from the examples in the
Event/Track classes that I can use a TClonesArray with automatic
branching, while for the higher levels I have to use TObjArrays and
create every branch by hand. 

I would be very grateful if somebody could provide me an example code of
how such a nested structure is implemented. 

Thank you in advance,

Bernhard

-- 
-----------------------------------------------------------------------------
Bernhard Ketzer                       Tel.: +41 22 76-76002  FAX: -77100
CERN, EP Division                     GSM : +41 79 201 4404 (CERN
164404)   
CH-1211 Geneve 23                     Email: Bernhard.Ketzer@cern.ch



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET