Re: [ROOT] trees

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 20 2001 - 19:10:20 MET


Anne-Sylvie,

You can use TTree::Print
eg
tree.Print(); will show all branches with their name, number of entries, etc
tree.Print("toponly") is less verbose than the default option. It shows
the list of the top branches only (the ones for which you have to set the
addresses).

Rene Brun

Anne-Sylvie Nicollerat wrote:
> 
> Hello,
> 
> Is there a command in root with which we can get a list of the different
> variables defined in a tree ?
> (when I am reading a tree, I can't set the branch address as I don't
> have the good variable name...)
> 
> Thank you
> 
> Anne-Sylvie
> 
> --
> -----------------------------------
> Anne-Sylvie Nicollerat
> office 327-52-56, phone 1-630-840-3899
> Fermilab/CDF MS 223 PO box 500,
> Batavia, IL 60510 USA
> 
> "Pour le croyant Dieu se trouve au debut, pour le physicien au terme de toute pensee." (Planck)



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET