Hi Ingo,
add a function like this to your class doing the filling:
Bool_t FileFull() { return (fRawDB->GetEND() > fMaxSize) ?
kTRUE : kFALSE; }
when true close the file fRawDB and open a new one. fMaxSize can be
tuned to what you or your mass storage system likes best.
Cheers, Fons.
On Mon, 2002-07-22 at 16:50, Ingo Strauch wrote:
> Hi ROOTers!
>
> Is there a way in ROOT to automatically start a new file when the size
> of a file to be written (or the TTree therein) exceeds a certain
> threshold?
>
> Problem is in a few cases the files I'm writing out can be larger than
> the maximum file size of the underlying OS. To be on the safe side I'd
> like to specify a maximum size for the TFile where ROOT then starts a
> second file, so that the sum can be bigger than the OS limit.
>
> Cheers,
> Ingo
>
> --
> "What're quantum mechanics?"
> "I don't know. People who repair quantums I suppose."
> --Rincewind, Terry Pratchett "Eric"
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET