#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 () const |
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 const *monitorable, bool NAifZeroUpdates) |
void | trackVectorUInt (std::string const &name, std::vector< unsigned int > const *monvec, bool NAifZeroUpdates) |
void | trackVectorUIntAtomic (std::string const &name, std::vector< AtomicMonUInt *> const *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 const * | 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 |
|
overridevirtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 51 of file DataPoint.cc.
References DATA, data_, DEFINITION, definition_, mps_fire::i, SOURCE, and source_.
void DataPoint::discardCollected | ( | unsigned int | forLumi | ) |
Definition at line 405 of file DataPoint.cc.
References globalDataMap_, mps_fire::i, and streamDataMaps_.
std::string DataPoint::fastOutCSV | ( | int | sid = -1 | ) |
Definition at line 244 of file DataPoint.cc.
References fastIndex_, isAtomic_, isStream_, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and tracked_.
|
inline |
|
inline |
|
inline |
void DataPoint::makeStreamLumiMap | ( | unsigned int | size | ) |
Definition at line 105 of file DataPoint.cc.
References mps_fire::i, and streamDataMaps_.
Referenced by trackVectorUInt(), and trackVectorUIntAtomic().
JsonMonitorable * DataPoint::mergeAndRetrieveValue | ( | unsigned int | forLumi | ) |
Definition at line 273 of file DataPoint.cc.
References jsoncollector::IntJ::add(), cms::cuda::assert(), cacheI_, 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 287 of file DataPoint.cc.
References cms::cuda::assert(), buf_, bufLen_, cacheI_, DATA, DEFINITION, definition_, 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 40 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 111 of file DataPoint.cc.
References DATA, DEFINITION, definition_, input, SOURCE, and source_.
|
inline |
Definition at line 109 of file DataPoint.h.
References seedmultiplicitymonitor_newtracking_cfi::nBins, and nBinsPtr_.
|
inline |
|
inline |
Definition at line 94 of file DataPoint.h.
References streamLumisPtr_.
void DataPoint::snap | ( | unsigned int | lumi | ) |
Definition at line 121 of file DataPoint.cc.
References cms::cuda::assert(), 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 169 of file DataPoint.cc.
References edm::service::monitor_file_utilities::concatenate(), 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 200 of file DataPoint.cc.
References cms::cuda::assert(), 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 82 of file DataPoint.h.
References isDummy_, NAifZeroUpdates_, Skims_PA_cff::name, and name_.
Referenced by jsoncollector::FastMonitor::commit().
void DataPoint::trackMonitorable | ( | JsonMonitorable const * | monitorable, |
bool | NAifZeroUpdates | ||
) |
Definition at line 68 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 > const * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 82 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 *> const * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 93 of file DataPoint.cc.
References isAtomic_, isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, Skims_PA_cff::name, name_, tracked_, and jsoncollector::TYPEUINT.
|
inline |
|
protected |
Definition at line 144 of file DataPoint.h.
Referenced by mergeAndSerialize(), and ~DataPoint().
|
protected |
Definition at line 145 of file DataPoint.h.
Referenced by mergeAndSerialize().
|
protected |
Definition at line 148 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), and mergeAndSerialize().
|
static |
Definition at line 118 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 124 of file DataPoint.h.
Referenced by deserialize(), getData(), and serialize().
|
static |
Definition at line 117 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 123 of file DataPoint.h.
Referenced by deserialize(), getDefinition(), mergeAndSerialize(), serialize(), and updateDefinition().
|
protected |
Definition at line 151 of file DataPoint.h.
Referenced by fastOutCSV().
|
protected |
Definition at line 127 of file DataPoint.h.
Referenced by discardCollected(), mergeAndSerialize(), and snapGlobal().
|
protected |
Definition at line 134 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapStreamAtomic(), and trackVectorUIntAtomic().
|
protected |
Definition at line 149 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), and snapStreamAtomic().
|
protected |
Definition at line 135 of file DataPoint.h.
Referenced by mergeAndSerialize(), and trackDummy().
|
protected |
Definition at line 137 of file DataPoint.h.
|
protected |
Definition at line 133 of file DataPoint.h.
Referenced by fastOutCSV(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 139 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 136 of file DataPoint.h.
Referenced by mergeAndSerialize(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 141 of file DataPoint.h.
Referenced by getName(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 147 of file DataPoint.h.
Referenced by mergeAndSerialize(), setNBins(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 140 of file DataPoint.h.
Referenced by mergeAndSerialize(), setOperation(), snap(), and snapStreamAtomic().
|
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(), Config.Process::dumpConfig(), Config.Process::dumpPython(), mergeAndSerialize(), serialize(), and Config.Process::splitPython().
|
protected |
Definition at line 126 of file DataPoint.h.
Referenced by discardCollected(), makeStreamLumiMap(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 131 of file DataPoint.h.
Referenced by setStreamLumiPtr(), and snap().
|
protected |
Definition at line 128 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().