Re: retrieve varlist of ntuple?

Rene Brun (Rene.Brun@cern.ch)
Wed, 14 Apr 1999 18:52:08 +0200 (METDST)


Hi Ulrich,
The varlist is not stored as a data member string in TTree/TNtuple.
The TTree::Branch function scans the list and creates a branch for each
variable. The corresponding branch varlist is stored as the title
of the branch. If you get the pointer to the branch, you get retrieve the
varlist with
char *varlist = branch->GetTitle();

If you do not know how to get the branches, I can send you a piece of code
if you want.

Rene Brun

On Wed, 14 Apr 1999, Ulrich Jost wrote:

> Hi,
>
> can I get the char* of the varlist of an ntuple?
> Print() gives me an overall information, but not suitable for use in a
> program.
>
> Suppose you have an unkown ntuple and want to plot some variables. I don't
> know beforehand if it contains eg "x:y" or only "x".
>
> Thanks, Ulrich
>
>