#include <DataPoint.h>
Public Member Functions | |
DataPoint () | |
DataPoint (std::string const &source, std::string const &definition, bool fast=false) | |
void | deserialize (Json::Value &root) override |
void | discardCollected (unsigned int forLumi) |
std::string | fastOutCSV (int sid=-1) |
std::vector< std::string > & | getData () |
std::string & | getDefinition () |
std::string const & | getName () |
void | makeStreamLumiMap (unsigned int size) |
JsonMonitorable * | mergeAndRetrieveValue (unsigned int forLumi) |
void | mergeAndSerialize (Json::Value &jsonRoot, unsigned int lumi, bool initJsonValue, int sid) |
void | serialize (Json::Value &root) const override |
void | serialize (Json::Value &root, bool rootInit, std::string const &input) const |
void | setNBins (unsigned int *nBins) |
void | setOperation (OperationType op) |
void | setStreamLumiPtr (std::vector< unsigned int > *streamLumiPtr) |
void | snap (unsigned int lumi) |
void | snapGlobal (unsigned int lumi) |
void | snapStreamAtomic (unsigned int lumi, unsigned int streamID) |
void | trackDummy (std::string const &name, bool setNAifZeroUpdates) |
void | trackMonitorable (JsonMonitorable *monitorable, bool NAifZeroUpdates) |
void | trackVectorUInt (std::string const &name, std::vector< unsigned int > *monvec, bool NAifZeroUpdates) |
void | trackVectorUIntAtomic (std::string const &name, std::vector< AtomicMonUInt * > *monvec, bool NAifZeroUpdates) |
void | updateDefinition (std::string const &definition) |
~DataPoint () override | |
Public Member Functions inherited from jsoncollector::JsonSerializable | |
virtual | ~JsonSerializable () |
Static Public Attributes | |
static const std::string | DATA = "data" |
static const std::string | DEFINITION = "definition" |
static const std::string | SOURCE = "source" |
Protected Attributes | |
uint32_t * | buf_ = nullptr |
unsigned int | bufLen_ = 0 |
int | cacheI_ |
std::vector< std::string > | data_ |
std::string | definition_ |
unsigned int | fastIndex_ = 0 |
MonPtrMap | globalDataMap_ |
bool | isAtomic_ = false |
bool | isCached_ = false |
bool | isDummy_ = false |
bool | isFastOnly_ |
bool | isStream_ = false |
MonType | monType_ |
bool | NAifZeroUpdates_ = false |
std::string | name_ |
unsigned int * | nBinsPtr_ = nullptr |
OperationType | opType_ |
std::string | source_ |
std::vector< MonPtrMap > | streamDataMaps_ |
std::vector< unsigned int > * | streamLumisPtr_ = nullptr |
void * | tracked_ = nullptr |
Definition at line 36 of file DataPoint.h.
|
inline |
Definition at line 38 of file DataPoint.h.
|
inline |
Definition at line 40 of file DataPoint.h.
|
override |
Definition at line 30 of file DataPoint.cc.
References buf_.
|
overridevirtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 52 of file DataPoint.cc.
References DATA, data_, DEFINITION, definition_, mps_fire::i, findQualityFiles::size, SOURCE, and source_.
void DataPoint::discardCollected | ( | unsigned int | forLumi | ) |
Definition at line 402 of file DataPoint.cc.
References mps_fire::end, globalDataMap_, mps_fire::i, and streamDataMaps_.
std::string DataPoint::fastOutCSV | ( | int | sid = -1 | ) |
Definition at line 241 of file DataPoint.cc.
References fastIndex_, createfilelist::int, isAtomic_, isStream_, findQualityFiles::size, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and tracked_.
|
inline |
|
inline |
|
inline |
void DataPoint::makeStreamLumiMap | ( | unsigned int | size | ) |
Definition at line 104 of file DataPoint.cc.
References mps_fire::i, findQualityFiles::size, and streamDataMaps_.
Referenced by trackVectorUInt(), and trackVectorUIntAtomic().
JsonMonitorable * DataPoint::mergeAndRetrieveValue | ( | unsigned int | forLumi | ) |
Definition at line 270 of file DataPoint.cc.
References jsoncollector::IntJ::add(), cms::cuda::assert(), cacheI_, mps_fire::end, mps_fire::i, isCached_, isStream_, monType_, streamDataMaps_, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::IntJ::value().
void DataPoint::mergeAndSerialize | ( | Json::Value & | jsonRoot, |
unsigned int | lumi, | ||
bool | initJsonValue, | ||
int | sid | ||
) |
Definition at line 284 of file DataPoint.cc.
References cms::cuda::assert(), buf_, bufLen_, cacheI_, DATA, DEFINITION, definition_, mps_fire::end, jsoncollector::JsonMonitorable::getUpdates(), globalDataMap_, mps_fire::i, createfilelist::int, isCached_, isDummy_, isStream_, dqmiolumiharvest::j, monType_, NAifZeroUpdates_, nBinsPtr_, jsoncollector::OPHISTO, opType_, SOURCE, source_, contentValuesCheck::ss, streamDataMaps_, jsoncollector::TYPESTRING, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::HistoJ< T >::value().
|
overridevirtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 41 of file DataPoint.cc.
References mps_setup::append, DATA, data_, DEFINITION, definition_, mps_fire::i, SOURCE, and source_.
void DataPoint::serialize | ( | Json::Value & | root, |
bool | rootInit, | ||
std::string const & | input | ||
) | const |
Functions specific to new monitoring implementation
Definition at line 110 of file DataPoint.cc.
References DATA, DEFINITION, definition_, input, SOURCE, and source_.
|
inline |
Definition at line 107 of file DataPoint.h.
References seedmultiplicitymonitor_newtracking_cfi::nBins, and nBinsPtr_.
|
inline |
|
inline |
void DataPoint::snap | ( | unsigned int | lumi | ) |
Definition at line 120 of file DataPoint.cc.
References cms::cuda::assert(), mps_fire::end, mps_fire::i, isAtomic_, isCached_, isStream_, MAXUPDATES, monType_, nBinsPtr_, cms::cuda::nh, jsoncollector::OPHISTO, opType_, snapGlobal(), streamDataMaps_, streamLumisPtr_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, and jsoncollector::IntJ::update().
void DataPoint::snapGlobal | ( | unsigned int | lumi | ) |
Definition at line 167 of file DataPoint.cc.
References globalDataMap_, isCached_, isStream_, BXlumiParameters_cfi::lumi, monType_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, jsoncollector::TYPESTRING, update, jsoncollector::IntJ::update(), jsoncollector::DoubleJ::update(), jsoncollector::StringJ::update(), and relativeConstraints::value.
Referenced by snap().
void DataPoint::snapStreamAtomic | ( | unsigned int | lumi, |
unsigned int | streamID | ||
) |
Definition at line 198 of file DataPoint.cc.
References cms::cuda::assert(), mps_fire::end, h, isAtomic_, isCached_, isStream_, BXlumiParameters_cfi::lumi, MAXUPDATES, monType_, nBinsPtr_, jsoncollector::OPHISTO, opType_, streamDataMaps_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, and update.
|
inline |
Definition at line 80 of file DataPoint.h.
References isDummy_, NAifZeroUpdates_, Skims_PA_cff::name, and name_.
Referenced by jsoncollector::FastMonitor::commit().
void DataPoint::trackMonitorable | ( | JsonMonitorable * | monitorable, |
bool | NAifZeroUpdates | ||
) |
Definition at line 69 of file DataPoint.cc.
References cms::cuda::assert(), jsoncollector::JsonMonitorable::getName(), monType_, NAifZeroUpdates_, name_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, and jsoncollector::TYPESTRING.
void DataPoint::trackVectorUInt | ( | std::string const & | name, |
std::vector< unsigned int > * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 83 of file DataPoint.cc.
References isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, Skims_PA_cff::name, name_, tracked_, and jsoncollector::TYPEUINT.
void DataPoint::trackVectorUIntAtomic | ( | std::string const & | name, |
std::vector< AtomicMonUInt * > * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 92 of file DataPoint.cc.
References isAtomic_, isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, Skims_PA_cff::name, name_, tracked_, and jsoncollector::TYPEUINT.
|
inline |
|
protected |
Definition at line 142 of file DataPoint.h.
Referenced by mergeAndSerialize(), and ~DataPoint().
|
protected |
Definition at line 143 of file DataPoint.h.
Referenced by mergeAndSerialize().
|
protected |
Definition at line 146 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), and mergeAndSerialize().
|
static |
Definition at line 116 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 122 of file DataPoint.h.
Referenced by deserialize(), getData(), and serialize().
|
static |
Definition at line 115 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 121 of file DataPoint.h.
Referenced by deserialize(), getDefinition(), mergeAndSerialize(), serialize(), and updateDefinition().
|
protected |
Definition at line 149 of file DataPoint.h.
Referenced by fastOutCSV().
|
protected |
Definition at line 125 of file DataPoint.h.
Referenced by discardCollected(), mergeAndSerialize(), and snapGlobal().
|
protected |
Definition at line 132 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapStreamAtomic(), and trackVectorUIntAtomic().
|
protected |
Definition at line 147 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), and snapStreamAtomic().
|
protected |
Definition at line 133 of file DataPoint.h.
Referenced by mergeAndSerialize(), and trackDummy().
|
protected |
Definition at line 135 of file DataPoint.h.
|
protected |
Definition at line 131 of file DataPoint.h.
Referenced by fastOutCSV(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 137 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 134 of file DataPoint.h.
Referenced by mergeAndSerialize(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 139 of file DataPoint.h.
Referenced by getName(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 145 of file DataPoint.h.
Referenced by mergeAndSerialize(), setNBins(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 138 of file DataPoint.h.
Referenced by mergeAndSerialize(), setOperation(), snap(), and snapStreamAtomic().
|
static |
Definition at line 114 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 120 of file DataPoint.h.
Referenced by deserialize(), Config.Process::dumpConfig(), Config.Process::dumpPython(), mergeAndSerialize(), serialize(), and Config.Process::splitPython().
|
protected |
Definition at line 124 of file DataPoint.h.
Referenced by discardCollected(), makeStreamLumiMap(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 129 of file DataPoint.h.
Referenced by setStreamLumiPtr(), and snap().
|
protected |
Definition at line 126 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().