#include <DataPoint.h>
Public Member Functions | |
DataPoint () | |
DataPoint (std::string const &source, std::string const &definition, bool fast=false) | |
virtual void | deserialize (Json::Value &root) |
void | discardCollected (unsigned int forLumi) |
std::string | fastOutCSV () |
std::vector< std::string > & | getData () |
std::string const & | getName () |
void | makeStreamLumiMap (unsigned int size) |
JsonMonitorable * | mergeAndRetrieveValue (unsigned int forLumi) |
void | mergeAndSerialize (Json::Value &jsonRoot, unsigned int lumi, bool initJsonValue) |
virtual void | serialize (Json::Value &root) const |
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 () | |
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_ =0 |
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 40 of file DataPoint.h.
|
inline |
Definition at line 42 of file DataPoint.h.
DataPoint::~DataPoint | ( | ) |
|
virtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 56 of file DataPoint.cc.
References Json::Value::asString(), DATA, data_, DEFINITION, definition_, Json::Value::get(), i, Json::Value::isArray(), Json::Value::size(), findQualityFiles::size, SOURCE, and source_.
Referenced by FedRawDataInputSource::grabNextJsonFile().
void DataPoint::discardCollected | ( | unsigned int | forLumi | ) |
Definition at line 383 of file DataPoint.cc.
References end, globalDataMap_, i, and streamDataMaps_.
std::string DataPoint::fastOutCSV | ( | ) |
Definition at line 251 of file DataPoint.cc.
References fastIndex_, isAtomic_, isStream_, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and tracked_.
|
inline |
Definition at line 58 of file DataPoint.h.
References data_.
Referenced by FedRawDataInputSource::grabNextJsonFile().
|
inline |
void DataPoint::makeStreamLumiMap | ( | unsigned int | size | ) |
Definition at line 107 of file DataPoint.cc.
References i, findQualityFiles::size, and streamDataMaps_.
Referenced by trackVectorUInt(), and trackVectorUIntAtomic().
JsonMonitorable * DataPoint::mergeAndRetrieveValue | ( | unsigned int | forLumi | ) |
Definition at line 276 of file DataPoint.cc.
References jsoncollector::IntJ::add(), cacheI_, end, i, isCached_, isStream_, monType_, streamDataMaps_, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::IntJ::value().
void DataPoint::mergeAndSerialize | ( | Json::Value & | jsonRoot, |
unsigned int | lumi, | ||
bool | initJsonValue | ||
) |
Definition at line 291 of file DataPoint.cc.
References Json::Value::append(), buf_, bufLen_, cacheI_, DATA, DEFINITION, definition_, end, jsoncollector::JsonMonitorable::getUpdates(), globalDataMap_, i, isCached_, isDummy_, isStream_, monType_, NAifZeroUpdates_, nBinsPtr_, jsoncollector::OPHISTO, opType_, SOURCE, source_, streamDataMaps_, jsoncollector::TYPESTRING, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::HistoJ< T >::value().
|
virtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 43 of file DataPoint.cc.
References python.multivaluedict::append(), DATA, data_, DEFINITION, definition_, 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 114 of file DataPoint.cc.
References Json::Value::append(), DATA, DEFINITION, definition_, SOURCE, and source_.
|
inline |
Definition at line 113 of file DataPoint.h.
References nBinsPtr_.
Referenced by jsoncollector::FastMonitor::registerGlobalMonitorable(), jsoncollector::FastMonitor::registerStreamMonitorableUIntVec(), and jsoncollector::FastMonitor::registerStreamMonitorableUIntVecAtomic().
|
inline |
|
inline |
Definition at line 96 of file DataPoint.h.
References streamLumisPtr_.
void DataPoint::snap | ( | unsigned int | lumi | ) |
Definition at line 125 of file DataPoint.cc.
References end, i, isAtomic_, isCached_, isStream_, MAXUPDATES, monType_, nBinsPtr_, jsoncollector::OPHISTO, opType_, snapGlobal(), streamDataMaps_, streamLumisPtr_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, jsoncollector::IntJ::update(), and jsoncollector::HistoJ< T >::update().
void DataPoint::snapGlobal | ( | unsigned int | lumi | ) |
Definition at line 175 of file DataPoint.cc.
References globalDataMap_, isCached_, isStream_, fjr2json::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 206 of file DataPoint.cc.
References end, h, isAtomic_, isCached_, isStream_, fjr2json::lumi, MAXUPDATES, monType_, nBinsPtr_, jsoncollector::OPHISTO, opType_, streamDataMaps_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, update, jsoncollector::IntJ::update(), and jsoncollector::HistoJ< T >::update().
|
inline |
Definition at line 81 of file DataPoint.h.
References isDummy_, NAifZeroUpdates_, mergeVDriftHistosByStation::name, and name_.
Referenced by jsoncollector::FastMonitor::commit().
void DataPoint::trackMonitorable | ( | JsonMonitorable * | monitorable, |
bool | NAifZeroUpdates | ||
) |
Definition at line 74 of file DataPoint.cc.
References jsoncollector::JsonMonitorable::getName(), monType_, NAifZeroUpdates_, name_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, and jsoncollector::TYPESTRING.
Referenced by jsoncollector::FastMonitor::registerFastGlobalMonitorable(), and jsoncollector::FastMonitor::registerGlobalMonitorable().
void DataPoint::trackVectorUInt | ( | std::string const & | name, |
std::vector< unsigned int > * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 86 of file DataPoint.cc.
References isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, mergeVDriftHistosByStation::name, name_, tracked_, and jsoncollector::TYPEUINT.
Referenced by jsoncollector::FastMonitor::registerStreamMonitorableUIntVec().
void DataPoint::trackVectorUIntAtomic | ( | std::string const & | name, |
std::vector< AtomicMonUInt * > * | monvec, | ||
bool | NAifZeroUpdates | ||
) |
Definition at line 96 of file DataPoint.cc.
References isAtomic_, isStream_, makeStreamLumiMap(), monType_, NAifZeroUpdates_, mergeVDriftHistosByStation::name, name_, tracked_, and jsoncollector::TYPEUINT.
Referenced by jsoncollector::FastMonitor::registerStreamMonitorableUIntVecAtomic().
|
inline |
|
protected |
Definition at line 148 of file DataPoint.h.
Referenced by mergeAndSerialize(), and ~DataPoint().
|
protected |
Definition at line 149 of file DataPoint.h.
Referenced by mergeAndSerialize().
|
protected |
Definition at line 152 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), and mergeAndSerialize().
|
static |
Definition at line 122 of file DataPoint.h.
Referenced by deserialize(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 128 of file DataPoint.h.
Referenced by deserialize(), getData(), and serialize().
|
static |
Definition at line 121 of file DataPoint.h.
Referenced by deserialize(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 127 of file DataPoint.h.
Referenced by deserialize(), mergeAndSerialize(), serialize(), and updateDefinition().
|
protected |
Definition at line 155 of file DataPoint.h.
Referenced by fastOutCSV().
|
protected |
Definition at line 131 of file DataPoint.h.
Referenced by discardCollected(), mergeAndSerialize(), and snapGlobal().
|
protected |
Definition at line 138 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapStreamAtomic(), and trackVectorUIntAtomic().
|
protected |
Definition at line 153 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), and snapStreamAtomic().
|
protected |
Definition at line 139 of file DataPoint.h.
Referenced by mergeAndSerialize(), and trackDummy().
|
protected |
Definition at line 141 of file DataPoint.h.
|
protected |
Definition at line 137 of file DataPoint.h.
Referenced by fastOutCSV(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 143 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 140 of file DataPoint.h.
Referenced by mergeAndSerialize(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 145 of file DataPoint.h.
Referenced by getName(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 151 of file DataPoint.h.
Referenced by mergeAndSerialize(), setNBins(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 144 of file DataPoint.h.
Referenced by mergeAndSerialize(), setOperation(), snap(), and snapStreamAtomic().
|
static |
Definition at line 120 of file DataPoint.h.
Referenced by deserialize(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 126 of file DataPoint.h.
Referenced by deserialize(), Config.Process::dumpConfig(), Config.Process::dumpPython(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 130 of file DataPoint.h.
Referenced by discardCollected(), makeStreamLumiMap(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 135 of file DataPoint.h.
Referenced by setStreamLumiPtr(), and snap().
|
protected |
Definition at line 132 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().