Hi Jean-Eric, In the current version in CVS head, I have added support in TTree::MakeClass for Trees/Branches generated from TFolders. Rene Brun Jean-Eric Campagne wrote: > > Hello, > > First of all thanks for your previous help. Now I come with an other > problem related. > Let me summarize, I have created Tree with the "Post TList of DMMCHits" > in a Folder to create a TBranch. > The TTree is contained in a file hit.root, and in a interactive root > session (3.03/04) I have try to use root to see how it manages to > access to provide an access to this Tree structure, so I have proceeded > > .L DMMCHit.cpp+ > TFile f("hit.root") > TTree* t = (TTree*)f.Get("TreeMCH") > t->MakeClass("MyHit") > > All the produced files are attached. The question is why the MyHit.h > does not refer to the branch created by the Folder to hold the > DMMCHit. However, this branch is ok 1) in the same root interactive > session I can do > t->Print() which give > > ****************************************************************************** > *Tree :TreeMCH : MC Hits * > *Entries : 2 : Total = 713 bytes File Size = 713 * > * : : Tree compression factor = 1.00 * > ****************************************************************************** > *Branch :.topFold.RunMC.EventMC.Hits.MCHitList * > *Entries : 2 : BranchElement (see below) * > *............................................................................* > *Br 0 :.topFold.RunMC.EventMC.Hits.MCHitList : * > *Entries : 2 : Total Size= 0 bytes File Size = 0 * > *Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 * > *............................................................................* > > 2) because I treats these Hits in an other program and I successfully > managed to load this Tree. > > Is the present version of ROOT 3.03/04 is able to generate skeleton to > access data in my case? > > Regards > J.E Campagne > > ............................................................................. > .LAL - IN2P3 - CNRS > .LAL - B.P 34 - 91898 Orsay Cedex - France > .Piece 108 > .Tel +33 (0)1 64 46 84 29 > .Fax +33 (0)1 64 46 83 97 > ........................................................................... > > -------------------------------------------------------------------------------- > > Name: hit.root > hit.root Type: unspecified type (Application/Octet-Stream) > Encoding: base64 > > Name: MyHit.h > MyHit.h Type: unspecified type (Application/Octet-Stream) > Encoding: base64 > > Name: MyHit.C > MyHit.C Type: unspecified type (Application/Octet-Stream) > Encoding: base64 > > Name: DMMCHit.h > DMMCHit.h Type: unspecified type (Application/Octet-Stream) > Encoding: base64 > > Name: DMMCHit.cpp > DMMCHit.cpp Type: unspecified type (Application/Octet-Stream) > Encoding: base64
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET