Sebastien Binet <binet_at_cern.ch> writes:
> On Tue, 8 Feb 2011 16:18:34 -0500, Brett Viren <bv_at_bnl.gov> wrote:
>> We recently added this feature to Daya Bay offline. To achieve it we >> handle the rolling to a new output file by hand instead of using some >> ROOT feature so it maybe doesn't help you.
It relies on our implementation for I/O in Gaudi. We have a package called RootIO[1] that abstracts the I/O into input and output streams. What we do is have an Gaudi algorithm monitoring the state of the current output stream (it cheats a bit and peaks at the file level). When the condition is met it simply sets a new output filename to the output stream. At the next attempt to write the stream notices the change and will automatically close the current file and open the new one. The algorithm is quite trivial but I can show it if you want to see it.
-Brett.
[1] http://dayabay.bnl.gov/~bviren/dayabay/offline/nuwa-git/dybgaudi/RootIO/RootIOSvc/
This archive was generated by hypermail 2.2.0 : Wed Feb 09 2011 - 17:50:01 CET