1 #ifndef EVFMTRAWEVENTFILEWRITERFORBU
2 #define EVFMTRAWEVENTFILEWRITERFORBU
9 #include "../interface/JsonMonitorable.h"
10 #include "../interface/DataPointMonitor.h"
11 #include "../interface/JSONSerializer.h"
24 #include <sys/types.h>
28 #include "boost/shared_array.hpp"
30 using namespace jsoncollector;
44 void doOutputEvent(boost::shared_array<unsigned char> & msg);
45 void doOutputEventFragment(
unsigned char* dataPtr,
46 unsigned long dataSize);
63 inline void queueEvent(
const char* buffer,
unsigned long size);
64 inline void queueEvent(boost::shared_array<unsigned char> & msg);
71 for (
auto w: writers)
w->join();
90 std::atomic<bool> close_flag_;
100 std::vector<std::auto_ptr<std::thread>> writers;
std::vector< uint32 > v_adlera_
static boost::mutex mutex
static PFTauRenderPlugin instance
std::vector< fwriter::EventContainer * > EventPool
std::string destinationDir_
unsigned char * fileHeader_
std::string lumiSectionSubDir_
uint32 adler32(uint32 adlera, uint32 adlerb) const
unsigned int eventBufferSize_
std::deque< unsigned int > queuedIds
std::vector< uint32 > v_adlerb_
bool lumiSubdirectoriesMode_
DataPointMonitor * lumiMon_
std::deque< unsigned int > freeIds
std::vector< DataPointMonitor * > perFileMonitors_
tuple size
Write out results.
std::vector< IntJ * > perFileCounters_