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

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 16 2001 - 14:29:14 MEST


Denis,
As I told you, you should not use MakeCode (I will deprecate this function).
Use MakeClass.

You can split TClonesArray. Remember that with the new scheme
  - split =1 will only split the top level object, not its members.
    For example if your top level object has a member TClonesArray, the array
    will not be split.
  - use split = 2, to split up to level 2, etc
For example if your top level class Event has a TClonesArray of TLorentzVector,
you must specify split = 3 if you want to see all members, including
the members of the TVector3 of TLorentzVector.
  - You can set split = 99 to split up to 99 levels of hieracrchy

Rene Brun

Denis Bertini wrote:
> 
> Hi Rene,
> 
>  I have tried the new CVS ROOT and the TTree::MakeClass() works
>  but TTree::MakeCode() still have problem to parse complex type.
>  Anyway it is enough to use MakeClass() thanks for that.
>  Just for information, is it now possible to split a TClonesArray
>  within the new scheme (using TBranchElement) ?
> 
>                                             Denis



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