Hi Rene In this regard I have also a question: Is there a way in ROOT to check in advance, if there is enough disk space before writing the contents of a TTree to a TFile? (At work I have a very expensive WinNT program,which writes files to disk even if the disk is full!) Best regards Christian ---------------------------------- C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a, A.u.s.t.r.i.a Rene Brun wrote: > 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:44 MET