Re: [ROOT] unique name

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jan 09 2001 - 09:37:12 MET


Hi David,
I do not see how to implement your suggestion in a general way. This will have
too many side-effects. Could you give some examples affecting your program?
The only objects that are automatically added to collections in memory
are histograms and Trees. We already provide an option (see TH1::AddDirectory)
to not add automatically histograms to the lists in memory.

Rene Brun

David Faden wrote:
> 
> Hi,
>    Is there a preferred method for generating a unique name for an
> object? Is it possible to specify that ROOT rename a new object
> rather than overwriting an older object with the same name? (When I open
> a TFile, I would like to avoid having its contents overwrite objects
> already in memory with the same names.)
>    Thank you.
> 
> David



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