Re: [ROOT] TObject::Write(), purge and keys

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Apr 29 2001 - 09:31:10 MEST


Hi Anton,

I suppose you mean "newer than" rather than "older than".

One can imagine many combinations of service functions to keep or remove
cycles for each key or/and all keys. The selections could be
 - maximum number of cycles
 - age 
 - time/date window
 - object patterns
 - key names
 - etc.

You can already make use of the function TKey::Keep to force a key
to be kept (purge will not destroy it).

I am open to suggestions, but I would not like to implement a plethore
of functions too specific for one type of application only.

The information in the TKey objects should be sufficient to easily
trigger a selection in a simple iterator.

Rene Brun


On Sat, 28 Apr 2001, Anton wrote:

> Hi rooters,
> 
> I would like to have the following functionality in root:
> 
> - setting a predefined number of circles to keep in root file on
> TObject::Write()
> - on new Write() save keys with dates older than a predefined date or
> minus n days from today.
> 
> I think it is easy to introduce. Otherwise we currently have only two
> options - keep all copies of an object or keep the latest one (or set by
> hand TKey::Keep() and call purge).
> 
> It would also be nice to be able to recover a copy of object by date.
> 
> I understand that this functionality is partly implemented in TKey etc.
> but I would like to see a direct realization in TDirectory::Purge() and
> TObject::Write()
> 
> Regards,
> Anton
> 



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