5 #include <Event/Event.h>
6 #include <Event/oBuffer.h>
7 #include <Event/ophBuffer.h>
20 const unsigned int sizeInMB,
36 uint64_t maxmb =
MaxSize() / (1024ULL * 1024ULL);
37 std::cout <<
"setting maximum size to current max (in MB): " << maxmb << std::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 std::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" << std::endl;
68 S_IRWXU | S_IROTH | S_IRGRP));
71 std::cout <<
"could not open " << outfilename <<
" quitting" << std::endl;
76 std::cout <<
"Fun4AllRolloverFileOutStream: opening new file " << outfilename << std::endl;
86 std::cout <<
Name() <<
": ERROR WRITING OUT FILTERED EVENT "
88 << evt->
getRunNumber() <<
" Status: " << status << std::endl;
105 os <<
"Fun4AllRolloverFileOutStream writing to " <<
FileRule()