5 #include <Event/Event.h>
6 #include <Event/oBuffer.h>
7 #include <Event/ospBuffer.h>
21 const unsigned int sizeInMB,
36 unsigned long long maxmb =
MaxSize() / (1024 * 1024);
37 cout <<
"setting maximum size to current max (in MB): " << maxmb << endl;
53 unsigned filenamesize =
FileRule().size() + 15;
55 char *outfilename =
new char[filenamesize];
57 int snprintfbytes = snprintf(outfilename, filenamesize,
FileRule().c_str(), irun,
iSeq());
58 if (static_cast<unsigned>(snprintfbytes) > filenamesize)
60 cout <<
PHWHERE <<
" " <<
Name() <<
": filename exceeds length " << filenamesize
61 <<
", tried " << snprintfbytes
62 <<
". probably it is the filerule" <<
FileRule()
63 <<
" which uses other than %010d-%04d for runnumber/segment" << endl;
68 S_IRWXU | S_IROTH | S_IRGRP));
71 cout <<
"could not open " << outfilename <<
" quitting" << endl;
76 cout <<
"Fun4AllRolloverFileOutStream: opening new file " << outfilename << endl;
86 cout <<
Name() <<
": ERROR WRITING OUT FILTERED EVENT "
103 os <<
"Fun4AllRolloverFileOutStream writing to " <<
FileRule()