Re: paw's "units"

Rene Brun (Rene.Brun@cern.ch)
Fri, 12 Dec 1997 17:01:16 +0100


Stephen_Eichblatt wrote:

> Hi,
>
> Perhaps this question has been adressed many times, but i often find myself confused
> as to which root objects i have loaded and what they are called.
> Is there something like in PAW "units" or in unix a "cd / ; ls" that will tell me
> what i have loaded?

If you have connected one file (say file1), you can do:
Root > .ls // will list all objects in current directory/file
Root > gDirectory->ls(); // same as above
Root > file1->ls(); //same as above

If you have many files, you can do:
Root > gROOT->GetListOfFiles()->ls(); // will list all objects in all files

Another way is to use the browser:
Root > TBrowser b;
then click on item "Root files",etc

Rene Brun