1 #ifndef EVFRAWEVENTFILEWRITERFORBU
2 #define EVFRAWEVENTFILEWRITERFORBU
13 #include <sys/types.h>
17 #include "boost/shared_array.hpp"
19 using namespace jsoncollector;
31 void doOutputEventFragment(
unsigned char* dataPtr,
32 unsigned long dataSize);
41 void makeRunPrefix(
std::string const& destinationDir);
48 bool closefd(){
if(outfd_>=0){close(outfd_); outfd_=-1;
return true;}
else return false;}
49 void finishFileWrite(
int ls);
73 bool writtenJSDs_=
false;
75 std::auto_ptr<std::ofstream>
ost_;
static AlgebraicMatrix initialize()
static PFTauRenderPlugin instance
IntJ perLumiTotalEventCount_
DataPointDefinition rawJsonDef_
void doOutputEvent(boost::shared_array< unsigned char > &msg)
DataPointDefinition eorJsonDef_
std::auto_ptr< std::ofstream > ost_
static void staticHandler(int s)
static RawEventFileWriterForBU * instance
std::string destinationDir_
DataPointDefinition eolJsonDef_