#include <FastMonitoringService.h>
Classes | |
struct | Encoding |
Static Public Attributes | |
static const std::string | macroStateNames [FastMonitoringThread::MCOUNT] |
static const std::string | nopath_ = "NoPath" |
Static Public Attributes inherited from evf::MicroStateService | |
static const edm::ModuleDescription | reservedMicroStateNames [mCOUNT] |
Private Member Functions | |
void | dowork () |
Private Attributes | |
Encoding | encModule_ |
Encoding | encPath_ |
string | fastName_ |
string | fastPath_ |
timeval | fileLookStart_ |
timeval | fileLookStop_ |
FastMonitoringThread | fmt_ |
std::vector< double > | leadTimes_ |
timeval | lumiStartTime_ |
timeval | lumiStopTime_ |
string | microstateDefPath_ |
string | outputDefPath_ |
std::unordered_map< unsigned int, int > | processedEventsPerLumi_ |
boost::filesystem::path | runDirectory_ |
int | sleepTime_ |
string | slowName_ |
boost::filesystem::path | workingDirectory_ |
Additional Inherited Members | |
Public Types inherited from evf::MicroStateService | |
enum | Microstate { mInvalid = 0, mFwkOvh, mIdle, mInput, mInputDone, mDqm, mCOUNT } |
Protected Attributes inherited from evf::MicroStateService | |
boost::mutex | lock_ |
Static Protected Attributes inherited from evf::MicroStateService | |
static const std::string | default_return_ ="NotImplemented" |
Definition at line 49 of file FastMonitoringService.h.
evf::FastMonitoringService::FastMonitoringService | ( | const edm::ParameterSet & | iPS, |
edm::ActivityRegistry & | reg | ||
) |
Definition at line 19 of file FastMonitoringService.cc.
References evf::FastMonitoringThread::MonitorData::accuSize_, evf::FastMonitoringThread::MonitorData::avgLeadTimeJ_, evf::FastMonitoringService::Encoding::completeReservedWithDummies(), gather_cfg::cout, evf::FastMonitoringService::Encoding::current_, dowork(), encModule_, encPath_, fastName_, fastPath_, evf::FastMonitoringThread::MonitorData::filesProcessedDuringLumi_, fmt_, i, jobFailure(), evf::FastMonitoringThread::MonitorData::jsonMonitor_, evf::FastMonitoringThread::MonitorData::lumisection_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::macrostate_, evf::FastMonitoringThread::MonitorData::macrostateJ_, evf::FastMonitoringThread::MCOUNT, evf::MicroStateService::mCOUNT, evf::FastMonitoringThread::MonitorData::microstate_, microstateDefPath_, evf::FastMonitoringThread::MonitorData::microstateJ_, evf::FastMonitoringThread::MonitorData::ministate_, evf::FastMonitoringThread::MonitorData::ministateJ_, evf::MicroStateService::mInvalid, nopath_, getHLTPrescaleColumns::path, postBeginJob(), postBeginRun(), postEndJob(), postEventProcessing(), postModule(), postSourceEvent(), preBeginLumi(), preEndLumi(), preEventProcessing(), preModule(), preModuleBeginJob(), prePathBeginRun(), preProcessPath(), preSourceEvent(), evf::FastMonitoringThread::MonitorData::processedJ_, evf::MicroStateService::reservedMicroStateNames, runDirectory_, jsoncollector::JsonMonitorable::setName(), evf::FastMonitoringThread::sInit, evf::FastMonitoringThread::start(), evf::FastMonitoringThread::MonitorData::throughputJ_, evf::FastMonitoringService::Encoding::update(), evf::FastMonitoringService::Encoding::updateReserved(), edm::ActivityRegistry::watchJobFailure(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostBeginRun(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostProcessEvent(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPreBeginLumi(), edm::ActivityRegistry::watchPreEndLumi(), edm::ActivityRegistry::watchPreModule(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPrePathBeginRun(), edm::ActivityRegistry::watchPreProcessEvent(), edm::ActivityRegistry::watchPreProcessPath(), edm::ActivityRegistry::watchPreSourceEvent(), and workingDirectory_.
evf::FastMonitoringService::~FastMonitoringService | ( | ) |
Definition at line 116 of file FastMonitoringService.cc.
void evf::FastMonitoringService::accummulateFileSize | ( | unsigned long | fileSize | ) |
Definition at line 284 of file FastMonitoringService.cc.
References evf::FastMonitoringThread::MonitorData::accuSize_, evf::FastMonitoringThread::MonitorData::filesProcessedDuringLumi_, fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::monlock_, and jsoncollector::IntJ::value().
Referenced by evf::EvFDaqDirector::bumpFile().
|
inlineprivate |
Definition at line 138 of file FastMonitoringService.h.
References gather_cfg::cout, encModule_, evf::FastMonitoringService::Encoding::encode(), encPath_, fastPath_, fmt_, evf::FastMonitoringThread::MonitorData::jsonMonitor_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::m_stoprequest, evf::FastMonitoringThread::MonitorData::macrostate_, evf::FastMonitoringThread::MonitorData::macrostateJ_, evf::FastMonitoringThread::MonitorData::microstate_, evf::FastMonitoringThread::MonitorData::microstateJ_, evf::FastMonitoringThread::MonitorData::ministate_, evf::FastMonitoringThread::MonitorData::ministateJ_, evf::FastMonitoringThread::monlock_, and sleepTime_.
Referenced by FastMonitoringService().
unsigned int evf::FastMonitoringService::getEventsProcessedForLumi | ( | unsigned int | lumi | ) |
Definition at line 320 of file FastMonitoringService.cc.
References fjr2json::lumi.
|
inline |
Definition at line 134 of file FastMonitoringService.h.
References outputDefPath_.
Referenced by evf::RecoEventOutputModuleForFU< Consumer >::RecoEventOutputModuleForFU().
|
inline |
Definition at line 135 of file FastMonitoringService.h.
References runDirectory_.
void evf::FastMonitoringService::jobFailure | ( | ) |
Definition at line 273 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::macrostate_, and evf::FastMonitoringThread::sError.
Referenced by FastMonitoringService().
std::string evf::FastMonitoringService::makeModuleLegenda | ( | ) |
Definition at line 162 of file FastMonitoringService.cc.
References evf::FastMonitoringService::Encoding::current_, evf::FastMonitoringService::Encoding::decode(), encModule_, and i.
Referenced by postBeginJob().
std::string evf::FastMonitoringService::makePathLegenda | ( | ) |
Definition at line 152 of file FastMonitoringService.cc.
References evf::FastMonitoringService::Encoding::current_, evf::FastMonitoringService::Encoding::decode(), encPath_, i, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by postBeginJob(), and postBeginRun().
void evf::FastMonitoringService::postBeginJob | ( | ) |
Definition at line 175 of file FastMonitoringService.cc.
References gather_cfg::cout, fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::macrostate_, makeModuleLegenda(), makePathLegenda(), and evf::FastMonitoringThread::sJobReady.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::postBeginRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) |
Definition at line 139 of file FastMonitoringService.cc.
References gather_cfg::cout, fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::macrostate_, makePathLegenda(), and evf::FastMonitoringThread::sRunning.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::postEndJob | ( | ) |
Definition at line 185 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::macrostate_, evf::FastMonitoringThread::sJobEnded, and evf::FastMonitoringThread::stop().
Referenced by FastMonitoringService().
void evf::FastMonitoringService::postEventProcessing | ( | const edm::Event & | e, |
const edm::EventSetup & | |||
) |
Definition at line 241 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::MicroStateService::mFwkOvh, evf::FastMonitoringThread::MonitorData::microstate_, evf::FastMonitoringThread::monlock_, evf::FastMonitoringThread::MonitorData::processedJ_, evf::MicroStateService::reservedMicroStateNames, and jsoncollector::IntJ::value().
Referenced by FastMonitoringService().
void evf::FastMonitoringService::postModule | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 268 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, and evf::FastMonitoringThread::MonitorData::microstate_.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::postSourceEvent | ( | edm::StreamID | ) |
Definition at line 256 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::MicroStateService::mFwkOvh, evf::FastMonitoringThread::MonitorData::microstate_, and evf::MicroStateService::reservedMicroStateNames.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preBeginLumi | ( | edm::LuminosityBlockID const & | iID, |
edm::Timestamp const & | iTime | ||
) |
Definition at line 192 of file FastMonitoringService.cc.
References gather_cfg::cout, fmt_, edm::LuminosityBlockID::luminosityBlock(), evf::FastMonitoringThread::MonitorData::lumisection_, lumiStartTime_, evf::FastMonitoringThread::m_data, and evf::FastMonitoringThread::monlock_.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preEndLumi | ( | edm::LuminosityBlockID const & | iID, |
edm::Timestamp const & | iTime | ||
) |
Definition at line 201 of file FastMonitoringService.cc.
References evf::FastMonitoringThread::MonitorData::accuSize_, evf::FastMonitoringThread::MonitorData::avgLeadTimeJ_, gather_cfg::cout, fastPath_, evf::FastMonitoringThread::MonitorData::filesProcessedDuringLumi_, fmt_, evf::FastMonitoringThread::MonitorData::jsonMonitor_, leadTimes_, edm::LuminosityBlockID::luminosityBlock(), evf::FastMonitoringThread::MonitorData::lumisection_, lumiStartTime_, lumiStopTime_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::monlock_, getHLTPrescaleColumns::path, processedEventsPerLumi_, evf::FastMonitoringThread::MonitorData::processedJ_, slowName_, evf::FastMonitoringThread::MonitorData::throughputJ_, jsoncollector::IntJ::value(), jsoncollector::DoubleJ::value(), and workingDirectory_.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preEventProcessing | ( | const edm::EventID & | iID, |
const edm::Timestamp & | iTime | ||
) |
Definition at line 235 of file FastMonitoringService.cc.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preModule | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 262 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, and evf::FastMonitoringThread::MonitorData::microstate_.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preModuleBeginJob | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 120 of file FastMonitoringService.cc.
References encModule_, edm::ModuleDescription::moduleName(), evf::FastMonitoringService::Encoding::update(), and evf::FastMonitoringService::Encoding::updateReserved().
Referenced by FastMonitoringService().
void evf::FastMonitoringService::prePathBeginRun | ( | const std::string & | pathName | ) |
Definition at line 131 of file FastMonitoringService.cc.
References gather_cfg::cout, encPath_, and evf::FastMonitoringService::Encoding::update().
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preProcessPath | ( | const std::string & | pathName | ) |
Definition at line 146 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::ministate_, and EgammaValidation_cff::pathName.
Referenced by FastMonitoringService().
void evf::FastMonitoringService::preSourceEvent | ( | edm::StreamID | ) |
Definition at line 250 of file FastMonitoringService.cc.
References fmt_, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::microstate_, evf::MicroStateService::mIdle, and evf::MicroStateService::reservedMicroStateNames.
Referenced by FastMonitoringService().
|
virtual |
Implements evf::MicroStateService.
Definition at line 278 of file FastMonitoringService.cc.
References fmt_, m, evf::FastMonitoringThread::m_data, evf::FastMonitoringThread::MonitorData::microstate_, and evf::MicroStateService::reservedMicroStateNames.
void evf::FastMonitoringService::startedLookingForFile | ( | ) |
Definition at line 292 of file FastMonitoringService.cc.
References fileLookStart_.
Referenced by FedRawDataInputSource::searchForNextFile().
void evf::FastMonitoringService::stoppedLookingForFile | ( | ) |
Definition at line 300 of file FastMonitoringService.cc.
References evf::FastMonitoringThread::MonitorData::avgLeadTimeJ_, fileLookStart_, fileLookStop_, fmt_, i, leadTimes_, and evf::FastMonitoringThread::m_data.
Referenced by FedRawDataInputSource::searchForNextFile().
|
private |
Definition at line 162 of file FastMonitoringService.h.
Referenced by dowork(), FastMonitoringService(), makeModuleLegenda(), and preModuleBeginJob().
|
private |
Definition at line 163 of file FastMonitoringService.h.
Referenced by dowork(), FastMonitoringService(), makePathLegenda(), and prePathBeginRun().
|
private |
Definition at line 167 of file FastMonitoringService.h.
Referenced by FastMonitoringService().
|
private |
Definition at line 167 of file FastMonitoringService.h.
Referenced by dowork(), FastMonitoringService(), and preEndLumi().
|
private |
Definition at line 169 of file FastMonitoringService.h.
Referenced by startedLookingForFile(), and stoppedLookingForFile().
|
private |
Definition at line 169 of file FastMonitoringService.h.
Referenced by stoppedLookingForFile().
|
private |
Definition at line 161 of file FastMonitoringService.h.
Referenced by accummulateFileSize(), dowork(), FastMonitoringService(), jobFailure(), postBeginJob(), postBeginRun(), postEndJob(), postEventProcessing(), postModule(), postSourceEvent(), preBeginLumi(), preEndLumi(), preModule(), preProcessPath(), preSourceEvent(), setMicroState(), and stoppedLookingForFile().
|
private |
Definition at line 170 of file FastMonitoringService.h.
Referenced by preEndLumi(), and stoppedLookingForFile().
|
private |
Definition at line 168 of file FastMonitoringService.h.
Referenced by preBeginLumi(), and preEndLumi().
|
private |
Definition at line 168 of file FastMonitoringService.h.
Referenced by preEndLumi().
|
static |
Definition at line 98 of file FastMonitoringService.h.
|
private |
Definition at line 166 of file FastMonitoringService.h.
Referenced by FastMonitoringService().
|
static |
Definition at line 101 of file FastMonitoringService.h.
Referenced by FastMonitoringService().
|
private |
Definition at line 166 of file FastMonitoringService.h.
Referenced by getOutputDefPath().
|
private |
Definition at line 171 of file FastMonitoringService.h.
Referenced by preEndLumi().
|
private |
Definition at line 172 of file FastMonitoringService.h.
Referenced by FastMonitoringService(), and getRunDirName().
|
private |
Definition at line 165 of file FastMonitoringService.h.
Referenced by dowork().
|
private |
Definition at line 167 of file FastMonitoringService.h.
Referenced by preEndLumi().
|
private |
Definition at line 172 of file FastMonitoringService.h.
Referenced by FastMonitoringService(), and preEndLumi().