Re: [ROOT] File size

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


Hi Anton,

The maximum file size is 2GB not 1.2 GB.

In your loop writing objects (obj.Write or tree.Fill) it is easy
to test
  if (file.GetBytesWritten() > MaximumFileSize) take action.

One could imagine that the Root functions could automatically Notify
one of your objects when the maximum file size has been reached with a
function of the type TFile::SetNotifyObject(TObject *obj). Your object
Notify function (is already in TObject) could be called when some
actions are executed on a file (open, close, maxfile reached, etc).
This would be easy to implement if there is some interest.

One could also make use of the TMessageHandler facility already in Root
since a long time, but not much exploited yet.

It is delicate to implement an automatic action by default.
Which names for the new files ?

Rene Brun


On Sat, 28 Apr 2001, Anton wrote:

> Hi rooters,
> 
> I am curious if there is (or planned) facility in ROOT which will handle
> 1.2Gb 32 bits limit? I mean if I write a large tree in a file and the
> file reaches 1.2Gb limit I would like to be switched automatically to
> another file and continume writing. The same I would like to have during
> the reading stage. Basically this is about a chain of files, but I would
> like to handle this chaining automatically, i.e. do not care about 1.2Gb
> limit.
> 
> Regards,
> Anton
> 



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