#include <FastMonitor.h>
Public Member Functions | |
void | addFastPathDefinition (std::string const &defPathFast, std::string const defGroupFast, bool strict) |
void | commit (std::vector< unsigned int > *streamLumisPtr) |
void | discardCollected (unsigned int forLumi) |
FastMonitor (DataPointDefinition *dpd, bool strictChecking, bool useSource=true, bool useDefinition=true) | |
FastMonitor (std::string const &defPath, std::string const defGroup, bool strictChecking, bool useSource=true, bool useDefinition=true) | |
std::string | getCSVString (int sid=-1) |
void | getHostAndPID (std::string &sHPid) |
JsonMonitorable * | getMergedIntJForLumi (std::string const &name, unsigned int forLumi) |
void | outputCSV (std::string const &path, std::string const &csvString) |
bool | outputFullJSON (std::string const &path, unsigned int lumi, bool output=true) |
bool | outputFullJSONs (std::string const &pathstem, std::string const &ext, unsigned int lumi, bool output=true) |
void | registerFastGlobalMonitorable (JsonMonitorable *newMonitorable) |
void | registerGlobalMonitorable (JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr) |
void | registerStreamMonitorableUIntVec (std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr) |
void | registerStreamMonitorableUIntVecAtomic (std::string const &name, std::vector< AtomicMonUInt * > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr) |
void | setDefPath (std::string const &dpath) |
void | setNStreams (unsigned int nStreams) |
void | snap (unsigned int ls) |
void | snapGlobal (unsigned int ls) |
void | snapStreamAtomic (unsigned int ls, unsigned int streamID) |
virtual | ~FastMonitor () |
Private Attributes | |
std::vector< DataPoint * > | dataPoints_ |
std::vector< DataPoint * > | dataPointsFastOnly_ |
std::string | defPath_ |
std::string | defPathFast_ |
bool | deleteDef_ = false |
bool | deleteDefFast_ = false |
DataPointDefinition * | dpd_ |
DataPointDefinition * | dpdFast_ |
std::map< std::string, unsigned int > | dpNameMap_ |
bool | fastPathStrictChecking_ |
unsigned int | fregDpCount_ = 0 |
bool | haveFastPath_ = false |
std::vector< unsigned int > | jsonDpIndex_ |
std::vector< DataPoint * > | jsonDpIndexFast_ |
unsigned int | nStreams_ |
std::vector< DataPoint * > | orphanedDps_ |
unsigned int | recentSnaps_ = 0 |
unsigned int | recentSnapsTimer_ = 0 |
unsigned int | regDpCount_ = 0 |
std::string | sourceInfo_ |
bool | strictChecking_ |
std::unordered_set< std::string > | uids_ |
bool | useDefinition_ |
bool | useSource_ |
Definition at line 19 of file FastMonitor.h.
FastMonitor::FastMonitor | ( | std::string const & | defPath, |
std::string const | defGroup, | ||
bool | strictChecking, | ||
bool | useSource = true , |
||
bool | useDefinition = true |
||
) |
Definition at line 22 of file FastMonitor.cc.
References defPath_, dpd_, jsoncollector::DataPointDefinition::getDataPointDefinitionFor(), getHostAndPID(), and sourceInfo_.
FastMonitor::FastMonitor | ( | DataPointDefinition * | dpd, |
bool | strictChecking, | ||
bool | useSource = true , |
||
bool | useDefinition = true |
||
) |
Definition at line 39 of file FastMonitor.cc.
References getHostAndPID(), and sourceInfo_.
|
virtual |
Definition at line 46 of file FastMonitor.cc.
References dataPoints_, deleteDef_, deleteDefFast_, Calorimetry_cff::dp, dpd_, and dpdFast_.
void FastMonitor::addFastPathDefinition | ( | std::string const & | defPathFast, |
std::string const | defGroupFast, | ||
bool | strict | ||
) |
Definition at line 55 of file FastMonitor.cc.
References defPathFast_, deleteDefFast_, dpdFast_, fastPathStrictChecking_, jsoncollector::DataPointDefinition::getDataPointDefinitionFor(), and haveFastPath_.
void FastMonitor::commit | ( | std::vector< unsigned int > * | streamLumisPtr | ) |
Definition at line 114 of file FastMonitor.cc.
References cms::cuda::assert(), dataPoints_, dataPointsFastOnly_, defPath_, defPathFast_, dpd_, dpdFast_, fastPathStrictChecking_, fregDpCount_, getName(), jsoncollector::DataPointDefinition::getNames(), jsoncollector::DataPointDefinition::getOperationFor(), haveFastPath_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, jsonDpIndexFast_, regDpCount_, sourceInfo_, strictChecking_, and jsoncollector::DataPoint::trackDummy().
Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), and evf::FastMonitoringThread::MonitorData::registerVariables().
void FastMonitor::discardCollected | ( | unsigned int | forLumi | ) |
Definition at line 284 of file FastMonitor.cc.
References dataPoints_, and Calorimetry_cff::dp.
Referenced by RawEventFileWriterForBU::endOfLS(), and RawEventFileWriterForBU::finishFileWrite().
std::string FastMonitor::getCSVString | ( | int | sid = -1 | ) |
Definition at line 212 of file FastMonitor.cc.
References dqmiolumiharvest::j, jsonDpIndexFast_, and contentValuesCheck::ss.
void FastMonitor::getHostAndPID | ( | std::string & | sHPid | ) |
Definition at line 289 of file FastMonitor.cc.
References createfilelist::int.
Referenced by FastMonitor().
JsonMonitorable * FastMonitor::getMergedIntJForLumi | ( | std::string const & | name, |
unsigned int | forLumi | ||
) |
Definition at line 235 of file FastMonitor.cc.
References cms::cuda::assert(), dataPoints_, dpNameMap_, and Skims_PA_cff::name.
void FastMonitor::outputCSV | ( | std::string const & | path, |
std::string const & | csvString | ||
) |
Definition at line 226 of file FastMonitor.cc.
References defPathFast_, MillePedeFileConverter_cfg::out, download_sqlite_cfg::outputFile, castor_dqm_sourceclient_file_cfg::path, and pileupReCalc_HLTpaths::trunc.
bool FastMonitor::outputFullJSON | ( | std::string const & | path, |
unsigned int | lumi, | ||
bool | output = true |
||
) |
Definition at line 266 of file FastMonitor.cc.
References dataPoints_, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, convertSQLitetoXML_cfg::output, castor_dqm_sourceclient_file_cfg::path, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, cscNeutronWriter_cfi::writer, and jsoncollector::FileIO::writeStringToFile().
Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), and RawEventFileWriterForBU::stop().
bool FastMonitor::outputFullJSONs | ( | std::string const & | pathstem, |
std::string const & | ext, | ||
unsigned int | lumi, | ||
bool | output = true |
||
) |
Definition at line 241 of file FastMonitor.cc.
References dataPoints_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, nStreams_, convertSQLitetoXML_cfg::output, castor_dqm_sourceclient_file_cfg::path, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, cscNeutronWriter_cfi::writer, and jsoncollector::FileIO::writeStringToFile().
void FastMonitor::registerFastGlobalMonitorable | ( | JsonMonitorable * | newMonitorable | ) |
Definition at line 79 of file FastMonitor.cc.
References dataPointsFastOnly_, defPathFast_, Calorimetry_cff::dp, and sourceInfo_.
Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().
void FastMonitor::registerGlobalMonitorable | ( | JsonMonitorable * | newMonitorable, |
bool | NAifZeroUpdates, | ||
unsigned int * | nBins = nullptr |
||
) |
Definition at line 65 of file FastMonitor.cc.
References cms::cuda::assert(), dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, jsoncollector::JsonMonitorable::getName(), seedmultiplicitymonitor_newtracking_cfi::nBins, edm::second(), sourceInfo_, and uids_.
Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), and evf::FastMonitoringThread::MonitorData::registerVariables().
void FastMonitor::registerStreamMonitorableUIntVec | ( | std::string const & | name, |
std::vector< unsigned int > * | inputs, | ||
bool | NAifZeroUpdates, | ||
unsigned int * | nBins = nullptr |
||
) |
Definition at line 86 of file FastMonitor.cc.
References cms::cuda::assert(), dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, PixelMapPlotter::inputs, Skims_PA_cff::name, seedmultiplicitymonitor_newtracking_cfi::nBins, sourceInfo_, and uids_.
Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().
void FastMonitor::registerStreamMonitorableUIntVecAtomic | ( | std::string const & | name, |
std::vector< AtomicMonUInt * > * | inputs, | ||
bool | NAifZeroUpdates, | ||
unsigned int * | nBins = nullptr |
||
) |
Definition at line 99 of file FastMonitor.cc.
References cms::cuda::assert(), dataPoints_, defPath_, Calorimetry_cff::dp, dpNameMap_, PixelMapPlotter::inputs, Skims_PA_cff::name, seedmultiplicitymonitor_newtracking_cfi::nBins, sourceInfo_, AlCaHLTBitMon_QueryRunRegistry::string, uids_, and useDefinition_.
Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().
|
inline |
Definition at line 32 of file FastMonitor.h.
References dataPoints_, defPath_, and Calorimetry_cff::dp.
Referenced by RawEventFileWriterForBU::writeJsds().
|
inline |
Definition at line 38 of file FastMonitor.h.
References runTheMatrix::nStreams, and nStreams_.
void FastMonitor::snap | ( | unsigned int | ls | ) |
Definition at line 188 of file FastMonitor.cc.
References dataPoints_, mps_fire::i, eostools::ls(), recentSnaps_, recentSnapsTimer_, and regDpCount_.
Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), and RawEventFileWriterForBU::stop().
void FastMonitor::snapGlobal | ( | unsigned int | ls | ) |
Definition at line 197 of file FastMonitor.cc.
References dataPoints_, mps_fire::i, eostools::ls(), recentSnaps_, and regDpCount_.
void FastMonitor::snapStreamAtomic | ( | unsigned int | ls, |
unsigned int | streamID | ||
) |
Definition at line 205 of file FastMonitor.cc.
References dataPoints_, mps_fire::i, eostools::ls(), recentSnaps_, and regDpCount_.
|
private |
Definition at line 112 of file FastMonitor.h.
Referenced by commit(), discardCollected(), getMergedIntJForLumi(), outputFullJSON(), outputFullJSONs(), registerGlobalMonitorable(), registerStreamMonitorableUIntVec(), registerStreamMonitorableUIntVecAtomic(), setDefPath(), snap(), snapGlobal(), snapStreamAtomic(), and ~FastMonitor().
|
private |
Definition at line 113 of file FastMonitor.h.
Referenced by commit(), and registerFastGlobalMonitorable().
|
private |
Definition at line 96 of file FastMonitor.h.
Referenced by commit(), FastMonitor(), registerGlobalMonitorable(), registerStreamMonitorableUIntVec(), registerStreamMonitorableUIntVecAtomic(), and setDefPath().
|
private |
Definition at line 97 of file FastMonitor.h.
Referenced by addFastPathDefinition(), commit(), outputCSV(), and registerFastGlobalMonitorable().
|
private |
Definition at line 109 of file FastMonitor.h.
Referenced by ~FastMonitor().
|
private |
Definition at line 110 of file FastMonitor.h.
Referenced by addFastPathDefinition(), and ~FastMonitor().
|
private |
Definition at line 107 of file FastMonitor.h.
Referenced by commit(), FastMonitor(), and ~FastMonitor().
|
private |
Definition at line 108 of file FastMonitor.h.
Referenced by addFastPathDefinition(), commit(), and ~FastMonitor().
|
private |
Definition at line 117 of file FastMonitor.h.
Referenced by getMergedIntJForLumi(), registerGlobalMonitorable(), registerStreamMonitorableUIntVec(), and registerStreamMonitorableUIntVecAtomic().
|
private |
Definition at line 99 of file FastMonitor.h.
Referenced by addFastPathDefinition(), and commit().
|
private |
Definition at line 122 of file FastMonitor.h.
Referenced by commit().
|
private |
Definition at line 102 of file FastMonitor.h.
Referenced by addFastPathDefinition(), and commit().
|
private |
Definition at line 114 of file FastMonitor.h.
Referenced by commit(), outputFullJSON(), and outputFullJSONs().
|
private |
Definition at line 115 of file FastMonitor.h.
Referenced by commit(), and getCSVString().
|
private |
Definition at line 104 of file FastMonitor.h.
Referenced by outputFullJSONs(), and setNStreams().
|
private |
Definition at line 116 of file FastMonitor.h.
|
private |
Definition at line 119 of file FastMonitor.h.
Referenced by outputFullJSON(), outputFullJSONs(), snap(), snapGlobal(), and snapStreamAtomic().
|
private |
Definition at line 120 of file FastMonitor.h.
Referenced by outputFullJSON(), outputFullJSONs(), and snap().
|
private |
Definition at line 121 of file FastMonitor.h.
Referenced by commit(), snap(), snapGlobal(), and snapStreamAtomic().
|
private |
Definition at line 106 of file FastMonitor.h.
Referenced by commit(), FastMonitor(), registerFastGlobalMonitorable(), registerGlobalMonitorable(), registerStreamMonitorableUIntVec(), and registerStreamMonitorableUIntVecAtomic().
|
private |
Definition at line 98 of file FastMonitor.h.
Referenced by commit().
|
private |
Definition at line 124 of file FastMonitor.h.
Referenced by registerGlobalMonitorable(), registerStreamMonitorableUIntVec(), and registerStreamMonitorableUIntVecAtomic().
|
private |
Definition at line 101 of file FastMonitor.h.
Referenced by registerStreamMonitorableUIntVecAtomic().
|
private |
Definition at line 100 of file FastMonitor.h.