Re: [ROOT] listing of all the alive TObjects in a root session

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 17 2001 - 12:46:17 MEST


Hi Isi, Hi Victor,

I have added an option in TObjectTable::Print to print the list of all
objects.
  gObjectTable->Print();
will behave as before, printing only the list of classes and the number
of objects per class.

 gObjectTable->Print("all");
will print in addition the list of all objects with the format
  object number, address, class name, object name

The modification is in the CVS source.

Rene Brun

Victor Perevoztchikov wrote:
> 
> Hi Isi,
> 
> I have simple CINT script file to do this.
> Formally it is not legal approach, but it works on Linux.
> If you ask Rene to add some method into TObjectTable
> then it could be an official.
> 
> File is attached.
> Victor
> 
> Isard_Dunietz wrote:
> >
> > Dear experts,
> >  Is there a way to list all the TObjects by name that are currently alive
> > (1. such as automatic variables in scope and 2. newed TObjects that have
> > not been deleted yet)?
> >   I have seen it done but cannot find documentation for it.
> >
> >    Thank you, Isi Dunietz
> 
> --
> Victor M. Perevoztchikov   perev@bnl.gov  perev@vxcern.cern.ch
> Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
> tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690
> 
>   --------------------------------------------------------------------------------
> 
>                    Name: ojtable.C
>    ojtable.C       Type: Plain Text (text/plain)
>                Encoding: 7bit



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