#include <RawEventFileWriterForBU.h>
Public Member Functions | |
edm::streamer::uint32 | adler32 () const |
void | doOutputEvent (edm::streamer::FRDEventMsgView const &msg) |
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) | |
void | start () |
void | stop () |
~RawEventFileWriterForBU () | |
Static Public Member Functions | |
static void | extendDescription (edm::ParameterSetDescription &desc) |
Private Member Functions | |
bool | closefd () |
void | finishFileWrite (int ls) |
void | writeJsds () |
Definition at line 21 of file RawEventFileWriterForBU.h.
|
explicit |
Definition at line 24 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 80 of file RawEventFileWriterForBU.cc.
RawEventFileWriterForBU::~RawEventFileWriterForBU | ( | ) |
Definition at line 82 of file RawEventFileWriterForBU.cc.
References fileMon_, lumiMon_, and runMon_.
|
inline |
Definition at line 29 of file RawEventFileWriterForBU.h.
References adlera_, and adlerb_.
|
inlineprivate |
Definition at line 40 of file RawEventFileWriterForBU.h.
References outfd_.
Referenced by endOfLS(), finishFileWrite(), and initialize().
void RawEventFileWriterForBU::doOutputEvent | ( | edm::streamer::FRDEventMsgView const & | msg | ) |
Definition at line 88 of file RawEventFileWriterForBU.cc.
References Exception, fileName_, microSleep_, mps_check::msg, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), and writeEcalDQMStatus::write.
void RawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 263 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().
|
static |
|
private |
Definition at line 211 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_, run_, 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 105 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 311 of file RawEventFileWriterForBU.cc.
References writedatasetfile::run, run_, runPrefix_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by endOfLS(), and stop().
|
inline |
Definition at line 31 of file RawEventFileWriterForBU.h.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void RawEventFileWriterForBU::stop | ( | ) |
Definition at line 296 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 178 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, edm_modernize_messagelogger::stat, 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 80 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), initialize(), stop(), and writeJsds().
|
private |
Definition at line 74 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 75 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 69 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 79 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), and initialize().
|
private |
Definition at line 83 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and initialize().
|
private |
Definition at line 89 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 70 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 88 of file RawEventFileWriterForBU.h.
Referenced by finishFileWrite(), and stop().
|
private |
Definition at line 82 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent().
|
private |
Definition at line 78 of file RawEventFileWriterForBU.h.
|
private |
Definition at line 50 of file RawEventFileWriterForBU.h.
Referenced by closefd(), doOutputEvent(), endOfLS(), finishFileWrite(), and initialize().
|
private |
Definition at line 66 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 67 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 73 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), and writeJsds().
|
private |
Definition at line 52 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), makeRunPrefix(), and stop().
|
private |
Definition at line 71 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU(), stop(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 53 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), makeRunPrefix(), and stop().
|
private |
Definition at line 76 of file RawEventFileWriterForBU.h.
Referenced by initialize().