Re: browsing

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Mar 06 1998 - 14:45:09 MET


rene Scholte wrote:
> 
> hello,
> 
> I've got a problem with the browser.
> In root I load the famous event.root with TFile f("event.root');
> and then i make a browser : TBrowser b;  .
> 
> now I can scan for instance the eventnumber by rightclicking on the event
> folder (in the left pane) and selecting the option scan, with varexp  =
> fEvtHdr.fEvtNum. This works perfectly.
> 
> But now i want to scan inside ftracks.
> 
> I tried right-clicking on event, selecting scan with varexp = fTracks.fPx,
> but al he gives back are zeros.
> 
> the same when I try to scan by right-clicking on ftracks.
> 
> So does anybody know how to view for instance fPx or fBx or any other
> datamember of the TClonesArray ftracks with the browser ?

TTree::Scan shows only one line per entry in the Tree.
In case of an Event with a list of tracks, only the first track
is shown.
The problem is that an object (Event) may contain lists
of different lengths. How to visualize such structures in a browser?

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET