Hi Jean-Eric, When you browse a Tree, you browse the branches and leaves, but not the objects pointed by the leaves. In your case, you should import one entry in memory via GetEntry then go to the folders to browse the objects in the folders for this particular entry. It is our intention to develop the TBrowser and TTreeViewer to make this navigation more automatic. Rene Brun On Fri, 3 May 2002, Jean-Eric Campagne wrote: > Hello, > > I am creating a Tree with a Branch from a Folder according to the > following scheme: > > > //create new Tree > m_treeMCD = new TTree("TreeMCD","MC Digits"); > gROOT->GetListOfBrowsables ()->Add(m_treeMCD,"TreeMCD"); > //create Digit List > m_mcDigitList = new TList(); > m_mcDigitList->SetName("MCDigitList"); > //post Digit List into Folder > m_event_mc_digitsFold->Add(m_mcDigitList); > //Make Tree branch according to Folder content > m_treeMCD->Branch("/topFold/RunMC/EventMC/Digits"); > > and event by event I am populating the m_mcDigitList and fill the tree > with it and at the end of the job I am writing the tree into a root > file. > > The point is the following, using an interactive Root session and > loading the output root file, I am only able to browse the TreeMCD > content that is to say the title of the branch > ".topFold.RunMC.EventMC.Digits.MCDigitList" supporting the > m_mcDigitList, but I have not access to the content of this list even > if I am loading the so library of the TObject stored in this List. > > Have you a solution to propose to be able to see the content of the > branch created by a Folder content? > > Regards > Jean-Eric > > > > ............................................................................. > .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