#include <MTRawEventFileWriterForBU.h>
Public Member Functions | |
uint32 | adler32 (uint32 adlera, uint32 adlerb) const |
void | doFlushFile () |
void | doOutputEvent (FRDEventMsgView const &msg) |
void | doOutputEvent (boost::shared_array< unsigned char > &msg) |
void | doOutputEventFragment (unsigned char *dataPtr, unsigned long dataSize) |
void | endOfLS (int ls) |
void | initialize (std::string const &destinationDir, std::string const &name, int ls) |
MTRawEventFileWriterForBU (edm::ParameterSet const &ps) | |
bool | sharedMode () const |
void | start () |
void | stop () |
~MTRawEventFileWriterForBU () | |
Private Member Functions | |
void | dispatchThreads (std::string fileBase, unsigned int instances, std::string suffix) |
void | finishThreads () |
void | queueEvent (const char *buffer, unsigned long size) |
void | queueEvent (boost::shared_array< unsigned char > &msg) |
void | threadRunner (std::string fileName, unsigned int instance) |
Private Attributes | |
bool | debug_ |
std::string | destinationDir_ |
unsigned int | eventBufferSize_ |
std::vector < fwriter::EventContainer * > | EventPool |
unsigned char * | fileHeader_ |
std::string | fileName_ |
int | finishAfterLS_ |
std::deque< unsigned int > | freeIds |
DataPointMonitor * | lumiMon_ |
std::string | lumiSectionSubDir_ |
bool | lumiSubdirectoriesMode_ |
unsigned int | numWriters_ |
std::vector< IntJ * > | perFileCounters_ |
std::vector< DataPointMonitor * > | perFileMonitors_ |
IntJ | perLumiEventCount_ |
std::deque< unsigned int > | queuedIds |
bool | sharedMode_ |
std::vector< uint32 > | v_adlera_ |
std::vector< uint32 > | v_adlerb_ |
Definition at line 36 of file MTRawEventFileWriterForBU.h.
|
explicit |
Definition at line 65 of file MTRawEventFileWriterForBU.cc.
References eventBufferSize_, EventPool, fileHeader_, freeIds, i, lumiMon_, perLumiEventCount_, jsoncollector::JsonMonitorable::setName(), and sharedMode_.
MTRawEventFileWriterForBU::~MTRawEventFileWriterForBU | ( | ) |
Definition at line 96 of file MTRawEventFileWriterForBU.cc.
References finishThreads(), lumiMon_, perFileCounters_, and perFileMonitors_.
Definition at line 48 of file MTRawEventFileWriterForBU.h.
|
private |
Definition at line 254 of file MTRawEventFileWriterForBU.cc.
References i, perFileCounters_, perFileMonitors_, perLumiEventCount_, jsoncollector::JsonMonitorable::setName(), and threadRunner().
Referenced by initialize().
void MTRawEventFileWriterForBU::doFlushFile | ( | ) |
Definition at line 124 of file MTRawEventFileWriterForBU.cc.
void MTRawEventFileWriterForBU::doOutputEvent | ( | FRDEventMsgView const & | msg | ) |
Definition at line 111 of file MTRawEventFileWriterForBU.cc.
References queueEvent(), sharedMode_, FRDEventMsgView::size(), and FRDEventMsgView::startAddress().
void MTRawEventFileWriterForBU::doOutputEvent | ( | boost::shared_array< unsigned char > & | msg | ) |
Definition at line 118 of file MTRawEventFileWriterForBU.cc.
References queueEvent(), and sharedMode_.
void MTRawEventFileWriterForBU::doOutputEventFragment | ( | unsigned char * | dataPtr, |
unsigned long | dataSize | ||
) |
Definition at line 129 of file MTRawEventFileWriterForBU.cc.
References queueEvent().
void MTRawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 173 of file MTRawEventFileWriterForBU.cc.
References destinationDir_, reco::dp, finishThreads(), lumiMon_, convertSQLitetoXML_cfg::output, getHLTPrescaleColumns::path, perLumiEventCount_, cond::serialize(), and jsoncollector::DataPointMonitor::snap().
|
inlineprivate |
Definition at line 67 of file MTRawEventFileWriterForBU.h.
References w().
Referenced by endOfLS(), initialize(), and ~MTRawEventFileWriterForBU().
void MTRawEventFileWriterForBU::initialize | ( | std::string const & | destinationDir, |
std::string const & | name, | ||
int | ls | ||
) |
Definition at line 147 of file MTRawEventFileWriterForBU.cc.
References destinationDir_, dispatchThreads(), finishThreads(), lumiSectionSubDir_, lumiSubdirectoriesMode_, mergeVDriftHistosByStation::name, numWriters_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivate |
Definition at line 200 of file MTRawEventFileWriterForBU.cc.
References EventPool, freeIds, perLumiEventCount_, queuedIds, and jsoncollector::IntJ::value().
Referenced by doOutputEvent(), and doOutputEventFragment().
|
inlineprivate |
Definition at line 227 of file MTRawEventFileWriterForBU.cc.
References EventPool, freeIds, perLumiEventCount_, queuedIds, and jsoncollector::IntJ::value().
|
inline |
|
inline |
Definition at line 50 of file MTRawEventFileWriterForBU.h.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inline |
Definition at line 51 of file MTRawEventFileWriterForBU.h.
|
private |
Definition at line 288 of file MTRawEventFileWriterForBU.cc.
References gather_cfg::cout, debug_, destinationDir_, reco::dp, EventPool, edm::hlt::Exception, fileName_, freeIds, instance, lumiSectionSubDir_, dbtoconf::out, convertSQLitetoXML_cfg::output, getHLTPrescaleColumns::path, perFileCounters_, perFileMonitors_, queuedIds, cond::serialize(), and sharedMode().
Referenced by dispatchThreads().
|
private |
Definition at line 87 of file MTRawEventFileWriterForBU.h.
Referenced by threadRunner().
|
private |
Definition at line 60 of file MTRawEventFileWriterForBU.h.
Referenced by endOfLS(), initialize(), and threadRunner().
|
private |
Definition at line 84 of file MTRawEventFileWriterForBU.h.
Referenced by MTRawEventFileWriterForBU().
|
private |
Definition at line 97 of file MTRawEventFileWriterForBU.h.
Referenced by MTRawEventFileWriterForBU(), queueEvent(), and threadRunner().
|
private |
Definition at line 105 of file MTRawEventFileWriterForBU.h.
Referenced by MTRawEventFileWriterForBU().
|
private |
Definition at line 59 of file MTRawEventFileWriterForBU.h.
Referenced by threadRunner().
|
private |
Definition at line 88 of file MTRawEventFileWriterForBU.h.
|
private |
Definition at line 95 of file MTRawEventFileWriterForBU.h.
Referenced by MTRawEventFileWriterForBU(), queueEvent(), and threadRunner().
|
private |
Definition at line 81 of file MTRawEventFileWriterForBU.h.
Referenced by endOfLS(), MTRawEventFileWriterForBU(), and ~MTRawEventFileWriterForBU().
|
private |
Definition at line 61 of file MTRawEventFileWriterForBU.h.
Referenced by initialize(), and threadRunner().
|
private |
Definition at line 86 of file MTRawEventFileWriterForBU.h.
Referenced by initialize().
|
private |
Definition at line 83 of file MTRawEventFileWriterForBU.h.
Referenced by initialize().
|
private |
Definition at line 107 of file MTRawEventFileWriterForBU.h.
Referenced by dispatchThreads(), threadRunner(), and ~MTRawEventFileWriterForBU().
|
private |
Definition at line 108 of file MTRawEventFileWriterForBU.h.
Referenced by dispatchThreads(), threadRunner(), and ~MTRawEventFileWriterForBU().
|
private |
Definition at line 80 of file MTRawEventFileWriterForBU.h.
Referenced by dispatchThreads(), endOfLS(), MTRawEventFileWriterForBU(), and queueEvent().
|
private |
Definition at line 96 of file MTRawEventFileWriterForBU.h.
Referenced by queueEvent(), and threadRunner().
|
private |
Definition at line 85 of file MTRawEventFileWriterForBU.h.
Referenced by doOutputEvent(), and MTRawEventFileWriterForBU().
|
private |
Definition at line 102 of file MTRawEventFileWriterForBU.h.
|
private |
Definition at line 103 of file MTRawEventFileWriterForBU.h.