Re: [ROOT] TTree, TBranch, TClonesArray and names of Branches

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Tue Apr 18 2000 - 16:24:32 MEST


Hi Rene and others, 

On Tue, 18 Apr 2000 13:31:16 +0000 Rene Brun <Rene.Brun@cern.ch> wrote:
> Hi Christian,
> When a branch references the same class, one can add a "." (dot) character
> at the end of the branch name. When splitting the object, the generated
> branches will be labelled branch.subbranch.
> This information is added in 2.24.
> In your example, replace the two statements:
> 
>     FooTable* table1 = new FooTable("Table1", 10);
>     FooTable* table2 = new FooTable("Table2", 20);
> by
>     FooTable* table1 = new FooTable("Table1.", 10);
>     FooTable* table2 = new FooTable("Table2.", 20);

This is exactly what I mentioned in the last part of my previous
mail. The problem is, that doing so (i.e., adding the '.' to the end
of the name) you no longer automatically read in the subranches, like
Table1.fArray in my example - you have to get the TBranch and set the
address explicitly! That seems like odd behaviour to me. 

Please go back an read the last part to get the full set of
considerations. I know my mail was rather long, so maybe you didn't
get to my real question, which is wether the above behaviour is
appropiate. (again, my previous mail has _all_ the considerations.) 

Oh, I forgot the important information - sorry: 

  ROOT:          2.24.02 (standard binary dist from ROOT site) 
  C++ Compiler:  EGCS 1.1.2 
  C Lib:	 glibc 2.1 
  OS:		 Linux 2.2.12 (Redhat 6.1) 
  ARCH:		 Pentium III (730.73 Bogomips) 

Thanks, 

Christian  -----------------------------------------------------------
Holm Christensen                             Phone:  (+45) 35 35 96 91 
  Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
  DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
  Denmark                                    Email:       cholm@nbi.dk



 



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