[ROOT] TTree::MakeClass and Tree from Folder

From: Jean-Eric Campagne (campagne@lal.in2p3.fr)
Date: Mon May 06 2002 - 14:37:49 MEST


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              
...........................................................................










This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET