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);
77 bool writtenJSDs_=
false;
79 std::auto_ptr<std::ofstream>
ost_;
90 unsigned int lumiOpen_ = 0;
91 unsigned int lumiClosed_ = 0;
static AlgebraicMatrix initialize()
IntJ perLumiLostEventCount_
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_