Re: Subclasses in TBranch: Browsing / arrays

From: Ingo Froehlich (Ingo.Froehlich@exp2.physik.uni-giessen.de)
Date: Thu Aug 19 1999 - 19:41:55 MEST


On Thu, 19 Aug 1999, Rene Brun wrote:

> Ingo,
> The user interface for TTree is in the TTree class itself.
> Do not try to use classes such as TBranchObject, TBranch, TLeaf yourself
> unless you understand deeply the TTree mechanism. All what you need
> is in TTree.

Hello,

But is there any example, how to divide a branch into sub branches?
What I want to do is:

I have a class called "ClassA" (Just to have an example - the analysis
code is much more complicate..). This Class contains a pointer (or lets
say many pointers...) to a subclass "ClassB"

How may a fill this into a root tree with a TBrowser that looks like:

my.root
 +--TreeName
    +--ClassA
       +--ClassB
          +--Members of ClassB

If I use splitlevel 1, it ends at ClassB (because it is a pointer), I
know, but how to split it by hand if I use splitlevel = 0?

Has anyone an example code for this construction?

Thanks, Ingo

--
Ingo Froehlich, II. Physikalisches Institut, Universitaet Giessen
Heinrich-Buff-Ring 16, D-35392 Giessen           |  Tel.: 0641 - 99 33250
EMail: Ingo.Froehlich@exp2.physik.uni-giessen.de |  Fax : 0641 - 99 33209
Sekretariat II. Physik: 0641 - 99 33261          |                    :-)



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET