#include <DQMFileIterator.h>
Classes | |
struct | EorEntry |
struct | LumiEntry |
Public Types | |
enum | State { OPEN = 0, EOR_CLOSING = 1, EOR = 2 } |
Public Member Functions | |
void | advanceToLumi (unsigned int lumi) |
void | delay () |
DQMFileIterator (edm::ParameterSet const &pset) | |
void | initialise (int run, const std::string &, const std::string &) |
unsigned int | lastLumiFound () |
void | logFileAction (const std::string &msg, const std::string &fileName="") const |
void | logLumiState (const LumiEntry &lumi, const std::string &msg) |
bool | lumiReady () |
std::string | make_path_data (const LumiEntry &lumi) |
const LumiEntry | open () |
void | pop () |
void | reset () |
unsigned int | runNumber () |
State | state () |
void | update_state () |
void | updateMonitoring () |
~DQMFileIterator () | |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &d) |
Private Member Functions | |
void | collect (bool ignoreTimers) |
Private Attributes | |
unsigned int | datafnPosition_ |
unsigned long | delayMillis_ |
EorEntry | eor_ |
long | forceFileCheckTimeoutMillis_ |
std::chrono::high_resolution_clock::time_point | lastLumiLoad_ |
std::map< unsigned int, LumiEntry > | lumiSeen_ |
edm::Service < DQMMonitoringService > | mon_ |
unsigned int | nextLumiNumber_ |
long | nextLumiTimeoutMillis_ |
std::string | runInputDir_ |
unsigned int | runNumber_ |
std::string | runPath_ |
std::chrono::high_resolution_clock::time_point | runPathLastCollect_ |
std::time_t | runPathMTime_ |
State | state_ |
std::string | streamLabel_ |
Definition at line 18 of file DQMFileIterator.h.
dqmservices::DQMFileIterator::DQMFileIterator | ( | edm::ParameterSet const & | pset | ) |
Definition at line 60 of file DQMFileIterator.cc.
References datafnPosition_, delayMillis_, asciidump::doc, forceFileCheckTimeoutMillis_, edm::ParameterSet::getUntrackedParameter(), mon_, nextLumiTimeoutMillis_, reset(), runInputDir_, runNumber_, streamLabel_, AlCaHLTBitMon_QueryRunRegistry::string, and updateMonitoring().
dqmservices::DQMFileIterator::~DQMFileIterator | ( | ) |
Definition at line 82 of file DQMFileIterator.cc.
void dqmservices::DQMFileIterator::advanceToLumi | ( | unsigned int | lumi | ) |
Definition at line 126 of file DQMFileIterator.cc.
References asciidump::doc, lastLumiLoad_, fjr2json::lumi, mon_, nextLumiNumber_, fileCollector::now, and updateMonitoring().
Referenced by open(), and dqmservices::DQMStreamerReader::reset_().
|
private |
Definition at line 172 of file DQMFileIterator.cc.
References prof2calltree::count, datafnPosition_, alignCSCRings::e, eor_, cppFunctionSkipper::exception, lut2db_cfg::filename, forceFileCheckTimeoutMillis_, diffTwoXMLs::label, dqmservices::DQMFileIterator::LumiEntry::load_json(), dqmservices::DQMFileIterator::EorEntry::loaded, logFileAction(), fjr2json::lumi, lumiSeen_, producerFileCleanner::msg, dqmservices::DQMFileIterator::EorEntry::n_lumi, fileCollector::now, query::result, DTTTrigCorrFirst::run, runNumber_, runPath_, runPathLastCollect_, runPathMTime_, streamLabel_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by reset(), and update_state().
void dqmservices::DQMFileIterator::delay | ( | ) |
Definition at line 342 of file DQMFileIterator.cc.
References delayMillis_, and mon_.
Referenced by dqmservices::DQMProtobufReader::getNextItemType(), dqmservices::DQMStreamerReader::prepareNextEvent(), and dqmservices::DQMStreamerReader::reset_().
|
static |
Definition at line 354 of file DQMFileIterator.cc.
References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dqmservices::DQMProtobufReader::fillDescriptions(), and dqmservices::DQMStreamerReader::fillDescriptions().
void dqmservices::DQMFileIterator::initialise | ( | int | run, |
const std::string & | , | ||
const std::string & | |||
) |
unsigned int dqmservices::DQMFileIterator::lastLumiFound | ( | ) |
Definition at line 118 of file DQMFileIterator.cc.
References lumiSeen_.
Referenced by dqmservices::DQMStreamerReader::reset_().
void dqmservices::DQMFileIterator::logFileAction | ( | const std::string & | msg, |
const std::string & | fileName = "" |
||
) | const |
Definition at line 327 of file DQMFileIterator.cc.
References convertXMLtoSQLite_cfg::fileName, and edm::FlushMessageLog().
Referenced by collect(), dqmservices::DQMProtobufReader::getNextItemType(), logLumiState(), dqmservices::DQMStreamerReader::openNextFile_(), dqmservices::DQMProtobufReader::readLuminosityBlock_(), dqmservices::DQMProtobufReader::readLuminosityBlockAuxiliary_(), dqmservices::DQMProtobufReader::readRun_(), dqmservices::DQMProtobufReader::readRunAuxiliary_(), dqmservices::DQMStreamerReader::reset_(), and update_state().
void dqmservices::DQMFileIterator::logLumiState | ( | const LumiEntry & | lumi, |
const std::string & | msg | ||
) |
Definition at line 334 of file DQMFileIterator.cc.
References dqmservices::DQMFileIterator::LumiEntry::file_ls, logFileAction(), lumiSeen_, and producerFileCleanner::msg.
Referenced by dqmservices::DQMStreamerReader::openNextFile_(), and dqmservices::DQMProtobufReader::readLuminosityBlock_().
bool dqmservices::DQMFileIterator::lumiReady | ( | ) |
Definition at line 108 of file DQMFileIterator.cc.
References lumiSeen_, and nextLumiNumber_.
Referenced by dqmservices::DQMProtobufReader::getNextItemType(), and dqmservices::DQMStreamerReader::prepareNextFile().
std::string dqmservices::DQMFileIterator::make_path_data | ( | const LumiEntry & | lumi | ) |
Definition at line 164 of file DQMFileIterator.cc.
References dqmservices::DQMFileIterator::LumiEntry::datafilename, AlCaHLTBitMon_ParallelJobs::p, cmsHarvester::path, and runPath_.
Referenced by dqmservices::DQMStreamerReader::openNextFile_(), and dqmservices::DQMProtobufReader::readLuminosityBlock_().
const DQMFileIterator::LumiEntry dqmservices::DQMFileIterator::open | ( | ) |
Definition at line 100 of file DQMFileIterator.cc.
References advanceToLumi(), fjr2json::lumi, lumiSeen_, nextLumiNumber_, and dqmservices::DQMFileIterator::LumiEntry::state.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), dqmservices::DQMStreamerReader::openNextFile_(), and dqmservices::DQMProtobufReader::readLuminosityBlockAuxiliary_().
void dqmservices::DQMFileIterator::pop | ( | ) |
Referenced by esMonitoring.History::write().
void dqmservices::DQMFileIterator::reset | ( | void | ) |
Definition at line 84 of file DQMFileIterator.cc.
References collect(), eor_, cmsPerfStripChart::format, lastLumiLoad_, dqmservices::DQMFileIterator::EorEntry::loaded, lumiSeen_, nextLumiNumber_, fileCollector::now, runInputDir_, runNumber_, runPath_, state_, and update_state().
Referenced by DQMFileIterator().
unsigned int dqmservices::DQMFileIterator::runNumber | ( | ) |
Definition at line 116 of file DQMFileIterator.cc.
References runNumber_.
Referenced by dqmservices::DQMProtobufReader::readLuminosityBlockAuxiliary_(), and dqmservices::DQMProtobufReader::readRunAuxiliary_().
DQMFileIterator::State dqmservices::DQMFileIterator::state | ( | ) |
Definition at line 98 of file DQMFileIterator.cc.
References state_.
Referenced by dqmservices::DQMProtobufReader::getNextItemType(), and dqmservices::DQMStreamerReader::prepareNextFile().
void dqmservices::DQMFileIterator::update_state | ( | ) |
Definition at line 271 of file DQMFileIterator.cc.
References collect(), prof2calltree::count, eor_, getDQMSummary::iter, lastLumiLoad_, dqmservices::DQMFileIterator::EorEntry::loaded, logFileAction(), lumiSeen_, producerFileCleanner::msg, dqmservices::DQMFileIterator::EorEntry::n_lumi, nextLumiNumber_, nextLumiTimeoutMillis_, fileCollector::now, state_, AlCaHLTBitMon_QueryRunRegistry::string, cond::to_string(), and updateMonitoring().
Referenced by dqmservices::DQMProtobufReader::getNextItemType(), dqmservices::DQMStreamerReader::prepareNextFile(), reset(), and dqmservices::DQMStreamerReader::reset_().
void dqmservices::DQMFileIterator::updateMonitoring | ( | ) |
Definition at line 144 of file DQMFileIterator.cc.
References asciidump::doc, getDQMSummary::iter, fjr2json::lumi, lumiSeen_, mon_, and cond::to_string().
Referenced by advanceToLumi(), DQMFileIterator(), and update_state().
|
private |
Definition at line 99 of file DQMFileIterator.h.
Referenced by collect(), and DQMFileIterator().
|
private |
Definition at line 94 of file DQMFileIterator.h.
Referenced by delay(), and DQMFileIterator().
|
private |
Definition at line 102 of file DQMFileIterator.h.
Referenced by collect(), reset(), and update_state().
|
private |
Definition at line 96 of file DQMFileIterator.h.
Referenced by collect(), and DQMFileIterator().
|
private |
Definition at line 114 of file DQMFileIterator.h.
Referenced by advanceToLumi(), reset(), and update_state().
|
private |
Definition at line 106 of file DQMFileIterator.h.
Referenced by collect(), lastLumiFound(), logLumiState(), lumiReady(), open(), reset(), update_state(), and updateMonitoring().
|
private |
Definition at line 119 of file DQMFileIterator.h.
Referenced by advanceToLumi(), delay(), DQMFileIterator(), and updateMonitoring().
|
private |
Definition at line 105 of file DQMFileIterator.h.
Referenced by advanceToLumi(), lumiReady(), open(), reset(), and update_state().
|
private |
Definition at line 95 of file DQMFileIterator.h.
Referenced by DQMFileIterator(), and update_state().
|
private |
Definition at line 92 of file DQMFileIterator.h.
Referenced by DQMFileIterator(), and reset().
|
private |
Definition at line 91 of file DQMFileIterator.h.
Referenced by collect(), DQMFileIterator(), reset(), and runNumber().
|
private |
Definition at line 100 of file DQMFileIterator.h.
Referenced by collect(), make_path_data(), and reset().
|
private |
Definition at line 111 of file DQMFileIterator.h.
Referenced by collect().
|
private |
Definition at line 110 of file DQMFileIterator.h.
Referenced by collect().
|
private |
Definition at line 103 of file DQMFileIterator.h.
Referenced by reset(), state(), and update_state().
|
private |
Definition at line 93 of file DQMFileIterator.h.
Referenced by collect(), and DQMFileIterator().