#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_ |
DataPointDefinition | eolJsonDef_ |
DataPointDefinition | eorJsonDef_ |
FastMonitor * | fileMon_ = nullptr |
std::string | fileName_ |
FastMonitor * | lumiMon_ = nullptr |
int | microSleep_ |
std::auto_ptr< std::ofstream > | ost_ |
int | outfd_ = -1 |
IntJ | perFileEventCount_ |
IntJ | perLumiEventCount_ |
IntJ | perLumiFileCount_ |
IntJ | perLumiTotalEventCount_ |
IntJ | perRunEventCount_ |
IntJ | perRunFileCount_ |
IntJ | perRunLumiCount_ |
DataPointDefinition | rawJsonDef_ |
int | run_ = -1 |
FastMonitor * | runMon_ = nullptr |
std::string | runPrefix_ |
bool | writtenJSDs_ =false |
Static Private Attributes | |
static RawEventFileWriterForBU * | instance = 0 |
Definition at line 21 of file RawEventFileWriterForBU.h.
|
explicit |
Definition at line 26 of file RawEventFileWriterForBU.cc.
References jsoncollector::DataPointDefinition::addLegendItem(), jsoncollector::FastMonitor::commit(), eolJsonDef_, eorJsonDef_, fileMon_, instance, lumiMon_, NULL, perFileEventCount_, perLumiEventCount_, perLumiFileCount_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLumiCount_, rawJsonDef_, jsoncollector::FastMonitor::registerGlobalMonitorable(), runMon_, jsoncollector::DataPointDefinition::setDefaultGroup(), jsoncollector::JsonMonitorable::setName(), staticHandler(), 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 |
Definition at line 34 of file RawEventFileWriterForBU.h.
|
inlineprivate |
void RawEventFileWriterForBU::doOutputEvent | ( | FRDEventMsgView const & | msg | ) |
Definition at line 98 of file RawEventFileWriterForBU.cc.
References edm::hlt::Exception, fileName_, microSleep_, outfd_, perFileEventCount_, perLumiEventCount_, perLumiTotalEventCount_, FRDEventMsgView::size(), FRDEventMsgView::startAddress(), jsoncollector::IntJ::value(), and TablePrint::write.
|
inline |
Definition at line 30 of file RawEventFileWriterForBU.h.
void RawEventFileWriterForBU::doOutputEventFragment | ( | unsigned char * | dataPtr, |
unsigned long | dataSize | ||
) |
void RawEventFileWriterForBU::endOfLS | ( | int | ls | ) |
Definition at line 249 of file RawEventFileWriterForBU.cc.
References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), finishFileWrite(), lumiMon_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), cmsHarvester::path, perLumiEventCount_, perLumiFileCount_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLumiCount_, run_, runPrefix_, jsoncollector::FastMonitor::snap(), AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().
|
private |
Definition at line 224 of file RawEventFileWriterForBU.cc.
References destinationDir_, jsoncollector::FastMonitor::discardCollected(), fileMon_, fileName_, jsoncollector::FastMonitor::outputFullJSON(), cmsHarvester::path, perFileEventCount_, 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 284 of file RawEventFileWriterForBU.cc.
References destinationDir_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), cmsHarvester::path, run_, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
void RawEventFileWriterForBU::initialize | ( | std::string const & | destinationDir, |
std::string const & | name, | ||
int | ls | ||
) |
Definition at line 128 of file RawEventFileWriterForBU.cc.
References adlera_, adlerb_, closefd(), destinationDir_, edm::hlt::Exception, fileName_, finishFileWrite(), mergeVDriftHistosByStation::name, outfd_, perFileEventCount_, perLumiFileCount_, jsoncollector::IntJ::value(), writeJsds(), and writtenJSDs_.
void RawEventFileWriterForBU::makeRunPrefix | ( | std::string const & | destinationDir | ) |
Definition at line 299 of file RawEventFileWriterForBU.cc.
References DTTTrigCorrFirst::run, run_, runPrefix_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by endOfLS(), and handler().
|
inline |
Definition at line 40 of file RawEventFileWriterForBU.h.
|
inline |
Definition at line 36 of file RawEventFileWriterForBU.h.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inlinestatic |
Definition at line 44 of file RawEventFileWriterForBU.h.
References instance.
Referenced by RawEventFileWriterForBU().
void RawEventFileWriterForBU::stop | ( | ) |
Definition at line 275 of file RawEventFileWriterForBU.cc.
References destinationDir_, jsoncollector::FastMonitor::outputFullJSON(), cmsHarvester::path, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 189 of file RawEventFileWriterForBU.cc.
References ws_sso_content_reader::content, destinationDir_, eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, rawJsonDef_, runMon_, cond::serialize(), jsoncollector::FastMonitor::setDefPath(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by initialize().
|
private |
Definition at line 81 of file RawEventFileWriterForBU.h.
Referenced by initialize().
|
private |
Definition at line 82 of file RawEventFileWriterForBU.h.
Referenced by initialize().
|
private |
Definition at line 77 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), finishFileWrite(), handler(), 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().
|
staticprivate |
Definition at line 84 of file RawEventFileWriterForBU.h.
Referenced by RawEventFileWriterForBU().
|
private |
Definition at line 67 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), RawEventFileWriterForBU(), writeJsds(), and ~RawEventFileWriterForBU().
|
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 51 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), and initialize().
|
private |
Definition at line 64 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), finishFileWrite(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 60 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 61 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), initialize(), and RawEventFileWriterForBU().
|
private |
Definition at line 62 of file RawEventFileWriterForBU.h.
Referenced by doOutputEvent(), endOfLS(), and RawEventFileWriterForBU().
|
private |
Definition at line 56 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 58 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 53 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), handler(), and makeRunPrefix().
|
private |
Definition at line 68 of file RawEventFileWriterForBU.h.
Referenced by handler(), RawEventFileWriterForBU(), stop(), writeJsds(), and ~RawEventFileWriterForBU().
|
private |
Definition at line 54 of file RawEventFileWriterForBU.h.
Referenced by endOfLS(), handler(), makeRunPrefix(), and stop().
|
private |
Definition at line 73 of file RawEventFileWriterForBU.h.
Referenced by initialize().