Re: [ROOT] Problem with TTree::MakeCode an v301-06

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 16 2001 - 08:51:22 MEST


Hi Denis,
The functions TTree::MakeCode/MakeClass/MakeSelector were not yet adapted
to the new branch styles. I implemented MakeClass/MakeSelector yesterday
in CVS. Note that the original MakeCode was designed for very simple Trees
and it will be difficult to support more complex trees with this
function that I would like to discontinue in the medium term. Use
MakeClass instead.

Rene Brun

On Wed, 15 Aug 2001, Denis Bertini wrote:

> 
> Hi, 
> 
> I am facing a problem trying to reuse the old
> Event program from the "test" directory of the 
> new ROOT301-06 distribution.
> 
> I created 3 root files corresponding to 3 different split levels
> that are described in MainEvent.cxx i.e:
> 
> - split = -2 the event is split using the old TBranchObject mechanism
>   (in fact split = 3 in the TTree ctor)    
> - split = -1 the event is streamed using the old TBranchObject
> mechanism (in fact split= 2 in TTree ctor)
> -  if split > 0  the event is split using the new TBranchElement
> mechanism. ( only split = 1 in TTree ctor i suppose ?? )
> 
> 
> 
> The split level ,corresponding to the new TBranchElement mechanism
> (split=1), creates a TTree wich is not "parsable" via TTree::MakeCode
> (in attachment i gives the correspnding generated macro ) 
>  
> Any Hints? 
>                              thanks a lot, 
>                                            Denis
> 



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