#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 | 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 () | |
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::unique_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 |
Definition at line 19 of file RawEventFileWriterForBU.h.
|
explicit |
Definition at line 25 of file RawEventFileWriterForBU.cc.
References jsoncollector::DataPointDefinition::addLegendItem(), jsoncollector::FastMonitor::commit(), eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiLostEventCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, rawJsonDef_, jsoncollector::FastMonitor::registerGlobalMonitorable(), runMon_, jsoncollector::DataPointDefinition::setDefaultGroup(), jsoncollector::JsonMonitorable::setName(), and SUM.
|
explicit |
Definition at line 86 of file RawEventFileWriterForBU.cc.
RawEventFileWriterForBU::~RawEventFileWriterForBU | ( | ) |
Definition at line 91 of file RawEventFileWriterForBU.cc.
References fileMon_, lumiMon_, and runMon_.
|
inline |
|
inlineprivate |
Definition at line 43 of file RawEventFileWriterForBU.h.
References finishFileWrite(), outfd_, and writeJsds().
Referenced by endOfLS(), and initialize().
void RawEventFileWriterForBU::doOutputEvent | ( | FRDEventMsgView const & | msg | ) |
Definition at line 98 of file RawEventFileWriterForBU.cc.
References Exception, fileName_, microSleep_, outfd_, perFileEventCount_, perFileSize_, FRDEventMsgView::size(), FRDEventMsgView::startAddress(), jsoncollector::IntJ::value(), and TriggerAnalyzer::write().
|
inline |
void RawEventFileWriterForBU::doOutputEventFragment | ( | unsigned char * | dataPtr, |
unsigned long | dataSize | ||
) |
Definition at line 117 of file RawEventFileWriterForBU.cc.
References Exception.
Referenced by doOutputEvent().
void RawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 255 of file RawEventFileWriterForBU.cc.
References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), finishFileWrite(), eostools::ls(), lumiClosed_, lumiMon_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), callgraph::path, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, run_, runPrefix_, jsoncollector::FastMonitor::snap(), AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
Referenced by start(), and stop().
|
private |
Definition at line 222 of file RawEventFileWriterForBU.cc.
References destinationDir_, jsoncollector::FastMonitor::discardCollected(), fileMon_, fileName_, eostools::ls(), lumiOpen_, jsoncollector::FastMonitor::outputFullJSON(), callgraph::path, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, jsoncollector::FastMonitor::snap(), source, AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
Referenced by closefd(), endOfLS(), and initialize().
void RawEventFileWriterForBU::initialize | ( | std::string const & | destinationDir, |
std::string const & | name, | ||
int | ls | ||
) |
Definition at line 126 of file RawEventFileWriterForBU.cc.
References adlera_, adlerb_, closefd(), destinationDir_, Exception, fileName_, finishFileWrite(), dataset::name, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), writeJsds(), and writtenJSDs_.
Referenced by start().
void RawEventFileWriterForBU::makeRunPrefix | ( | std::string const & | destinationDir | ) |
Definition at line 299 of file RawEventFileWriterForBU.cc.
References writedatasetfile::run, run_, runPrefix_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by endOfLS(), sharedMode(), and stop().
|
inline |
Definition at line 38 of file RawEventFileWriterForBU.h.
References makeRunPrefix(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 34 of file RawEventFileWriterForBU.h.
References endOfLS(), initialize(), eostools::ls(), dataset::name, stop(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void RawEventFileWriterForBU::stop | ( | ) |
Definition at line 284 of file RawEventFileWriterForBU.cc.
References destinationDir_, endOfLS(), lumiClosed_, lumiOpen_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), callgraph::path, run_, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by start().
|
private |
Definition at line 187 of file RawEventFileWriterForBU.cc.
References ws_sso_content_reader::content, destinationDir_, eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, eostools::mkdir(), rawJsonDef_, runMon_, cond::serialize(), jsoncollector::FastMonitor::setDefPath(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by closefd(), and initialize().
|
private |
Definition at line 81 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 82 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 77 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), initialize(), stop(), and writeJsds().
|
private |
Definition at line 71 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 72 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 66 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 76 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), and initialize().
|
private |
Definition at line 85 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 67 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 84 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and stop().
|
private |
Definition at line 79 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent().
|
private |
Definition at line 75 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 46 of file RawEventFileWriterForBU.h.
Referenced by closefd(), doOutputEvent(), and initialize().
|
private |
Definition at line 63 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 64 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 56 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 57 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 59 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU().
|
private |
Definition at line 60 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 58 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 51 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 52 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 54 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 53 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 70 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 48 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), makeRunPrefix(), and stop().
|
private |
Definition at line 68 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), stop(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 49 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), makeRunPrefix(), and stop().
|
private |
Definition at line 73 of file RawEventFileWriterForBU.h.
Referenced by initialize().