Re: [ROOT] Problem with identical branch names and "."

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 22 2001 - 10:04:26 MEST


Hi Daniel,

I cannot reproduce this problem. Could you send me your version of tree4.C
showing the problem?
I tested this example. The TClonesArray is correctly written and read back.
However, there is a limitation in TTree::Draw (and the browser) in this
particular case. We will fix it.

Rene Brun

Magestro Daniel wrote:
> 
> Hi - I am using the tree4.C macro in $ROOTSYS/tutorials (I'm using v3.01/06)
> which contains an example of split level = 99, and there seems to be a
> simple problem with the use of "." to indicate identical branch names.
> 
> In the original macro, the branch is added with the following line:
> 
>    Event *event = new Event();
>    t4.Branch("event_split", "Event", &event,16000,99);
> 
> When I try this, "event_split" is correctly filled with the macro, including
> the datamembers of the TClonesArray which the Event class contains.
> 
> Now, I create two branches of the same class and I follow the example in the
> TTree::TBranch documentation, which tells me to add a "." after the name of
> the branch (to distinguish the sub-branches):
> 
>    Event *event = new Event();
>    Event *event2 = new Event();
>    t4.Branch("event_split.", "Event", &event,16000,99);
>    t4.Branch("event_split2.", "Event", &event2,16000,99);
> 
> When I try this, the simple datamembers of "event_split." are correctly
> filled, but the datamembers of the TClonesArray datamember are NOT filled.
> How do I solve this problem?  This functionality is very important for an
> analysis with lots of identical datamembers...
> 
> Thanks! --Dan
> 
>  -------------------------------------------
> |  Daniel Magestro        +44-6159-71-2147  |
> |  magestro@gsi.de        GSI/Kernphysik I  |
> |  www.gsi.de/~magestro   Planckstr. 1      |
> |    < last updated >     64291 Darmstadt   |
> |    < Aug 6, 2001  >     Germany           |
>  -------------------------------------------
>



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET