5 #include <Event/Event.h>
6 #include <Event/oBuffer.h>
7 #include <Event/olzoBuffer.h>
42 unsigned filenamesize =
m_FileRule.size() + 15;
44 char *outfilename =
new char[filenamesize];
46 int snprintfbytes = snprintf(outfilename, filenamesize,
m_FileRule.c_str(), irun,
m_iSeq);
47 if (static_cast<unsigned>(snprintfbytes) > filenamesize)
49 std::cout <<
PHWHERE <<
" " <<
Name() <<
": filename exceeds length " << filenamesize
50 <<
", tried " << snprintfbytes
52 <<
" which uses other than %010d-%04d for runnumber/segment" << std::endl;
56 S_IRWXU | S_IROTH | S_IRGRP);
59 std::cout <<
"could not open " << outfilename <<
" quitting" << std::endl;
62 std::cout <<
"opening new file " << outfilename << std::endl;
70 std::cout <<
Name() <<
": ERROR WRITING OUT FILTERED EVENT "
72 << evt->
getRunNumber() <<
" Status: " << status << std::endl;
95 os <<
"Fun4AllFileOutStream writing to " <<
m_OutFileDesc << std::endl;