#include <RawEventFileWriterForBU.h>
Public Member Functions | |
uint32 | adler32 () const |
void | doOutputEvent (boost::shared_array< unsigned char > &msg) |
void | doOutputEvent (FRDEventMsgView const &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 () |
Definition at line 18 of file RawEventFileWriterForBU.h.
|
explicit |
Definition at line 26 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 85 of file RawEventFileWriterForBU.cc.
RawEventFileWriterForBU::~RawEventFileWriterForBU | ( | ) |
|
inline |
|
inlineprivate |
Definition at line 38 of file RawEventFileWriterForBU.h.
References outfd_.
Referenced by endOfLS(), finishFileWrite(), and initialize().
|
inline |
Definition at line 25 of file RawEventFileWriterForBU.h.
void RawEventFileWriterForBU::doOutputEvent | ( | FRDEventMsgView const & | msg | ) |
Definition at line 93 of file RawEventFileWriterForBU.cc.
References Exception, fileName_, microSleep_, mps_check::msg, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), and writeEcalDQMStatus::write.
void RawEventFileWriterForBU::doOutputEventFragment | ( | unsigned char * | dataPtr, |
unsigned long | dataSize | ||
) |
Definition at line 110 of file RawEventFileWriterForBU.cc.
References Exception.
void RawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 260 of file RawEventFileWriterForBU.cc.
References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), finishFileWrite(), eostools::ls(), lumiClosed_, lumiMon_, makeRunPrefix(), outfd_, jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, run_, runPrefix_, jsoncollector::FastMonitor::snap(), AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
Referenced by stop().
|
private |
Definition at line 218 of file RawEventFileWriterForBU.cc.
References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), fileMon_, fileName_, frdFileVersion_, eostools::ls(), lumiOpen_, outfd_, jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, jsoncollector::FastMonitor::snap(), source, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::IntJ::value(), and writeEcalDQMStatus::write.
Referenced by endOfLS(), and initialize().
void RawEventFileWriterForBU::initialize | ( | std::string const & | destinationDir, |
std::string const & | name, | ||
int | ls | ||
) |
Definition at line 116 of file RawEventFileWriterForBU.cc.
References adlera_, adlerb_, cms::cuda::assert(), closefd(), destinationDir_, Exception, fileName_, finishFileWrite(), frdFileVersion_, eostools::ls(), Skims_PA_cff::name, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), writeJsds(), and writtenJSDs_.
void RawEventFileWriterForBU::makeRunPrefix | ( | std::string const & | destinationDir | ) |
Definition at line 308 of file RawEventFileWriterForBU.cc.
References writedatasetfile::run, run_, runPrefix_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 34 of file RawEventFileWriterForBU.h.
|
inline |
Definition at line 30 of file RawEventFileWriterForBU.h.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void RawEventFileWriterForBU::stop | ( | ) |
Definition at line 293 of file RawEventFileWriterForBU.cc.
References destinationDir_, endOfLS(), lumiClosed_, lumiOpen_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, run_, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 185 of file RawEventFileWriterForBU.cc.
References Skims_PA_cff::content, destinationDir_, eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, eostools::mkdir(), rawJsonDef_, runMon_, cond::serialize(), jsoncollector::FastMonitor::setDefPath(), contentValuesCheck::ss, hgcalPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by initialize().
|
private |
Definition at line 83 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 84 of file RawEventFileWriterForBU.h.
Referenced by adler32(), and initialize().
|
private |
Definition at line 78 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), initialize(), stop(), and writeJsds().
|
private |
Definition at line 72 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 73 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 67 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 77 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), and initialize().
|
private |
Definition at line 81 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and initialize().
|
private |
Definition at line 87 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 68 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 86 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and stop().
|
private |
Definition at line 80 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent().
|
private |
Definition at line 76 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 48 of file RawEventFileWriterForBU.h.
Referenced by closefd(), doOutputEvent(), endOfLS(), finishFileWrite(), and initialize().
|
private |
Definition at line 64 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 65 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 58 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 59 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 61 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU().
|
private |
Definition at line 62 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 60 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().
|
private |
Definition at line 53 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 56 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 55 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 71 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 50 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), makeRunPrefix(), and stop().
|
private |
Definition at line 69 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), stop(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 51 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), makeRunPrefix(), and stop().
|
private |
Definition at line 74 of file RawEventFileWriterForBU.h.
Referenced by initialize().