#include <RawEventFileWriterForBU.h>
Public Member Functions | |
uint32 | adler32 () const |
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 | handler (int s) |
void | initialize (std::string const &destinationDir, std::string const &name, int ls) |
void | makeRunPrefix (std::string const &destinationDir) |
RawEventFileWriterForBU (edm::ParameterSet const &ps) | |
RawEventFileWriterForBU (std::string const &fileName) | |
bool | sharedMode () const |
void | start () |
void | stop () |
~RawEventFileWriterForBU () | |
Static Public Member Functions | |
static void | staticHandler (int s) |
Private Member Functions | |
bool | closefd () |
void | finishFileWrite (int ls) |
void | writeJsds () |
Private Attributes | |
uint32 | adlera_ |
uint32 | adlerb_ |
std::string | destinationDir_ |
jsoncollector::DataPointDefinition | eolJsonDef_ |
jsoncollector::DataPointDefinition | eorJsonDef_ |
jsoncollector::FastMonitor * | fileMon_ = nullptr |
std::string | fileName_ |
unsigned int | lumiClosed_ = 0 |
jsoncollector::FastMonitor * | lumiMon_ = nullptr |
unsigned int | lumiOpen_ = 0 |
int | microSleep_ |
std::auto_ptr< std::ofstream > | ost_ |
int | outfd_ = -1 |
jsoncollector::IntJ | perFileEventCount_ |
jsoncollector::IntJ | perFileSize_ |
jsoncollector::IntJ | perLumiEventCount_ |
jsoncollector::IntJ | perLumiFileCount_ |
jsoncollector::IntJ | perLumiLostEventCount_ |
jsoncollector::IntJ | perLumiSize_ |
jsoncollector::IntJ | perLumiTotalEventCount_ |
jsoncollector::IntJ | perRunEventCount_ |
jsoncollector::IntJ | perRunFileCount_ |
jsoncollector::IntJ | perRunLastLumi_ |
jsoncollector::IntJ | perRunLumiCount_ |
jsoncollector::DataPointDefinition | rawJsonDef_ |
int | run_ = -1 |
jsoncollector::FastMonitor * | runMon_ = nullptr |
std::string | runPrefix_ |
bool | writtenJSDs_ =false |
Static Private Attributes | |
static RawEventFileWriterForBU * | instance = 0 |
Definition at line 20 of file RawEventFileWriterForBU.h.
|
explicit |
Definition at line 29 of file RawEventFileWriterForBU.cc.
References jsoncollector::DataPointDefinition::addLegendItem(), jsoncollector::FastMonitor::commit(), eolJsonDef_, eorJsonDef_, fileMon_, instance, lumiMon_, NULL, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiLostEventCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, rawJsonDef_, jsoncollector::FastMonitor::registerGlobalMonitorable(), runMon_, jsoncollector::DataPointDefinition::setDefaultGroup(), jsoncollector::JsonMonitorable::setName(), staticHandler(), and SUM.
|
explicit |
Definition at line 99 of file RawEventFileWriterForBU.cc.
RawEventFileWriterForBU::~RawEventFileWriterForBU | ( | ) |
Definition at line 104 of file RawEventFileWriterForBU.cc.
References fileMon_, lumiMon_, and runMon_.
|
inline |
|
inlineprivate |
Definition at line 47 of file RawEventFileWriterForBU.h.
References outfd_.
Referenced by endOfLS(), and initialize().
void RawEventFileWriterForBU::doOutputEvent | ( | FRDEventMsgView const & | msg | ) |
Definition at line 111 of file RawEventFileWriterForBU.cc.
References Exception, fileName_, microSleep_, outfd_, perFileEventCount_, perFileSize_, FRDEventMsgView::size(), FRDEventMsgView::startAddress(), jsoncollector::IntJ::value(), and TablePrint::write.
|
inline |
Definition at line 29 of file RawEventFileWriterForBU.h.
void RawEventFileWriterForBU::doOutputEventFragment | ( | unsigned char * | dataPtr, |
unsigned long | dataSize | ||
) |
Definition at line 130 of file RawEventFileWriterForBU.cc.
References Exception.
void RawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 268 of file RawEventFileWriterForBU.cc.
References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), finishFileWrite(), eostools::ls(), lumiClosed_, lumiMon_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), fed_dqm_sourceclient-live_cfg::path, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, run_, runPrefix_, jsoncollector::FastMonitor::snap(), AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
Referenced by handler().
|
private |
Definition at line 235 of file RawEventFileWriterForBU.cc.
References destinationDir_, jsoncollector::FastMonitor::discardCollected(), fileMon_, fileName_, eostools::ls(), lumiOpen_, jsoncollector::FastMonitor::outputFullJSON(), fed_dqm_sourceclient-live_cfg::path, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, jsoncollector::FastMonitor::snap(), source, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
Referenced by endOfLS(), and initialize().
void RawEventFileWriterForBU::handler | ( | int | s | ) |
Definition at line 306 of file RawEventFileWriterForBU.cc.
References destinationDir_, endOfLS(), lumiClosed_, lumiOpen_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), fed_dqm_sourceclient-live_cfg::path, run_, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by staticHandler().
void RawEventFileWriterForBU::initialize | ( | std::string const & | destinationDir, |
std::string const & | name, | ||
int | ls | ||
) |
Definition at line 139 of file RawEventFileWriterForBU.cc.
References adlera_, adlerb_, closefd(), destinationDir_, Exception, fileName_, finishFileWrite(), mergeVDriftHistosByStation::name, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), writeJsds(), and writtenJSDs_.
void RawEventFileWriterForBU::makeRunPrefix | ( | std::string const & | destinationDir | ) |
Definition at line 322 of file RawEventFileWriterForBU.cc.
References DTTTrigCorrFirst::run, run_, runPrefix_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by endOfLS(), and handler().
|
inline |
Definition at line 39 of file RawEventFileWriterForBU.h.
|
inline |
Definition at line 35 of file RawEventFileWriterForBU.h.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inlinestatic |
Definition at line 43 of file RawEventFileWriterForBU.h.
References handler(), and instance.
Referenced by RawEventFileWriterForBU().
void RawEventFileWriterForBU::stop | ( | ) |
Definition at line 297 of file RawEventFileWriterForBU.cc.
References destinationDir_, jsoncollector::FastMonitor::outputFullJSON(), fed_dqm_sourceclient-live_cfg::path, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 200 of file RawEventFileWriterForBU.cc.
References ws_sso_content_reader::content, destinationDir_, eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, eostools::mkdir(), rawJsonDef_, runMon_, cond::serialize(), jsoncollector::FastMonitor::setDefPath(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by initialize().
|
private |
Definition at line 85 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 86 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 81 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), handler(), initialize(), stop(), and writeJsds().
|
private |
Definition at line 75 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 76 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 70 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 80 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), and initialize().
|
staticprivate |
Definition at line 88 of file RawEventFileWriterForBU.h.
Referenced by production_tasks.Task::getname(), RawEventFileWriterForBU(), and staticHandler().
|
private |
Definition at line 91 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 71 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 90 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and handler().
|
private |
Definition at line 83 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent().
|
private |
Definition at line 79 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 50 of file RawEventFileWriterForBU.h.
Referenced by closefd(), doOutputEvent(), and initialize().
|
private |
Definition at line 67 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 68 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 60 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 61 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 63 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU().
|
private |
Definition at line 64 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 62 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 55 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 56 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 58 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 57 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 74 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 52 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), handler(), and makeRunPrefix().
|
private |
Definition at line 72 of file RawEventFileWriterForBU.h.
Referenced by handler(), RawEventFileWriterForBU(), stop(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 53 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), handler(), makeRunPrefix(), and stop().
|
private |
Definition at line 77 of file RawEventFileWriterForBU.h.
Referenced by initialize().