Re: [ROOT] TreeViewer questions

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 21 2003 - 08:22:35 MET


Hi Richard,

> "Dubois, Richard" wrote:
> 
> I've finally got around to fiddling with TreeViewer and have some questions on
> how to work it with ntuples. I've been using 3.10.01 on both linux and XP.
> 
> ·       If I start the viewer from scratch (no open file) and try to open a
> file, I just get a message on the console telling me to use the right-pane
> context menu to set a tree name. I can do that, but nothing comes of it. No
> file (or tree) appears in the left pane.

Starting the TreeViewer requires a Tree (via tree.StartViewer();)
The normal way to proceed is to use the normal ROOT browser TBrowser
to navigate in your directories and files. In the TBrowser, you can start
the TreeViewer  and even have several TreeViewers in parallel.

> 
> ·       On linux how do I navigate to a different filesystem with File/Open?
> ·       Ok, so if I start it from an existing tree (chain actually in my
> case), I cannot seem to reset the tree name, even though the (chained) files
> contain more than one tree in fact.
> 
> ·       Is there a way to set an expression to be an existing TCut? It seems
> to always try to evaluate it as an expression from the ntuple columns.

yes, this is described in the help button. You can define new variables
or expressions that you can use in the x,y,z slots or in the scissor (cut) slot.

> 
> ·       Does the progress bar do anything during a Draw? I have yet to see it
> be different from 0.

Yes, the progress bar works. In general, plotting one variable is so fast that
you do not even have the time to see the progress bar ::)

> ·       What does the red "record" button do?

see explanations in the help button.

> 
>  It seems a pretty handy-dandy tool for ntuple analysis, especially if I could
> figure out these usability issues!

We have recently added a few more improvements in the TreeViewer (CVS version).
In particular, there is a new button Refresh that allows you to
visualize/histogram a Tree being filled by another process.

Rene Brun

> 
> Thanks,
> 
> Richard
> 
> --
> Richard Dubois
> Stanford Linear Accelerator Center
> Stanford, CA
> 650-926-3824
> 650-926-8616 (FAX)
> http://www.slac.stanford.edu/~richard



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET