Hi Christian,
A priori, all real sub-branches are shown in the TTreeViewer.
In the case of test/Event, fLastTrack is a TRef and hence has __no__ real sub-branches. In addition the TTreeViewer still needs to be renovated :) to handle some of the newer case (like the ability to automatic follow the references).
You may find that the TBrowser is able to better unwind branches since it is also able to drill though non split branches (aka unwind objects).
Cheers,
Philippe
-----Original Message-----
From: owner-rootdev_at_pcroot.cern.ch [mailto:owner-rootdev_at_pcroot.cern.ch] On
Behalf Of Christian Hansen
Sent: Saturday, February 17, 2007 7:07 AM
To: roottalk; roottalk_at_pcroot.cern.ch
Subject: [ROOTDEV] subbranches?
Dear Rooters,
I'm having problems expanding sub-branches in the TreeViewer. Since my program looks very much like the MainEvent.cxx example provided in the "test" folder, I can base my question on this example:
In the "test" folder in root version 5.04/00
I compiled and ran ./Event
Then I used the TreeViewer to look at the TTree
in the Event.root file.
Why does all variables of "event" looks like leafs
in the viewer?
Is it possible to make for example fLastTrack an
expandable sub-branch so that one could reach e.g.
the last tracks fPx, fPy and fPz with the TreeViewer?
I get some warnings when I open the TreeViewer: Warning in <TClass::TClass>: no dictionary for class Event is available I tried to produce dictionaries with cint, but without any luck.
Is there any way I can make the sub-branches expandable in the TreeViewer?
With best regards
/ Christian Hansen
PS. I have no problems in reading in a complex TTree, this is just about using the TreeViewer.
Dep. of Phys. Office: +1 250 721 7710 Univ of Victoria Mobile: +1 250 588 0860PO Box 3055
http://cern.ch/christian.hansen Received on Sat Feb 17 2007 - 17:58:13 CET
This archive was generated by hypermail 2.2.0 : Tue Feb 20 2007 - 23:50:01 CET