#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 40 of file DataPoint.h.
|
inline |
|
override |
|
overridevirtual |
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(), mps_fire::i, Json::Value::isArray(), Json::Value::size(), findQualityFiles::size, SOURCE, and source_.
Referenced by DataPoint(), evf::EvFDaqDirector::getNFilesFromEoLS(), and FedRawDataInputSource::grabNextJsonFile().
void DataPoint::discardCollected | ( | unsigned int | forLumi | ) |
Definition at line 413 of file DataPoint.cc.
References end, globalDataMap_, mps_fire::i, and streamDataMaps_.
Referenced by setStreamLumiPtr().
std::string DataPoint::fastOutCSV | ( | int | sid = -1 | ) |
Definition at line 251 of file DataPoint.cc.
References fastIndex_, isAtomic_, isStream_, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and tracked_.
Referenced by setStreamLumiPtr().
|
inline |
Definition at line 58 of file DataPoint.h.
References data_.
Referenced by evf::EvFDaqDirector::getNFilesFromEoLS(), and FedRawDataInputSource::grabNextJsonFile().
|
inline |
Definition at line 59 of file DataPoint.h.
References definition_, input, dataset::name, serialize(), snap(), snapGlobal(), snapStreamAtomic(), AlCaHLTBitMon_QueryRunRegistry::string, trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
Referenced by evf::EvFDaqDirector::getNFilesFromEoLS().
|
inline |
void DataPoint::makeStreamLumiMap | ( | unsigned int | size | ) |
Definition at line 107 of file DataPoint.cc.
References mps_fire::i, findQualityFiles::size, and streamDataMaps_.
Referenced by trackDummy(), trackVectorUInt(), and trackVectorUIntAtomic().
JsonMonitorable * DataPoint::mergeAndRetrieveValue | ( | unsigned int | forLumi | ) |
Definition at line 283 of file DataPoint.cc.
References jsoncollector::IntJ::add(), cacheI_, end, mps_fire::i, isCached_, isStream_, monType_, streamDataMaps_, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::IntJ::value().
Referenced by setStreamLumiPtr().
void DataPoint::mergeAndSerialize | ( | Json::Value & | jsonRoot, |
unsigned int | lumi, | ||
bool | initJsonValue, | ||
int | sid | ||
) |
Definition at line 298 of file DataPoint.cc.
References Json::Value::append(), buf_, bufLen_, cacheI_, DATA, DEFINITION, definition_, end, jsoncollector::JsonMonitorable::getUpdates(), globalDataMap_, mps_fire::i, createfilelist::int, isCached_, isDummy_, isStream_, monType_, NAifZeroUpdates_, nBinsPtr_, jsoncollector::OPHISTO, opType_, SOURCE, source_, streamDataMaps_, jsoncollector::TYPESTRING, jsoncollector::TYPEUINT, relativeConstraints::value, and jsoncollector::HistoJ< T >::value().
Referenced by setStreamLumiPtr().
|
overridevirtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 43 of file DataPoint.cc.
References mps_setup::append, DATA, data_, DEFINITION, definition_, mps_fire::i, SOURCE, and source_.
Referenced by DataPoint(), and getDefinition().
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 114 of file DataPoint.h.
References nBinsPtr_.
Referenced by jsoncollector::FastMonitor::registerGlobalMonitorable(), jsoncollector::FastMonitor::registerStreamMonitorableUIntVec(), and jsoncollector::FastMonitor::registerStreamMonitorableUIntVecAtomic().
|
inline |
|
inline |
Definition at line 97 of file DataPoint.h.
References discardCollected(), fastOutCSV(), mergeAndRetrieveValue(), mergeAndSerialize(), streamLumisPtr_, and AlCaHLTBitMon_QueryRunRegistry::string.
void DataPoint::snap | ( | unsigned int | lumi | ) |
Definition at line 125 of file DataPoint.cc.
References end, mps_fire::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().
Referenced by getDefinition().
void DataPoint::snapGlobal | ( | unsigned int | lumi | ) |
Definition at line 175 of file DataPoint.cc.
References globalDataMap_, isCached_, isStream_, csvLumiCalc::lumi, monType_, tracked_, jsoncollector::TYPEDOUBLE, jsoncollector::TYPEINT, jsoncollector::TYPESTRING, update, jsoncollector::IntJ::update(), jsoncollector::DoubleJ::update(), jsoncollector::StringJ::update(), and relativeConstraints::value.
Referenced by getDefinition(), and snap().
void DataPoint::snapStreamAtomic | ( | unsigned int | lumi, |
unsigned int | streamID | ||
) |
Definition at line 206 of file DataPoint.cc.
References end, h, isAtomic_, isCached_, isStream_, csvLumiCalc::lumi, MAXUPDATES, monType_, nBinsPtr_, jsoncollector::OPHISTO, opType_, streamDataMaps_, tracked_, jsoncollector::TYPEINT, jsoncollector::TYPEUINT, update, jsoncollector::IntJ::update(), and jsoncollector::HistoJ< T >::update().
Referenced by getDefinition().
|
inline |
Definition at line 82 of file DataPoint.h.
References isDummy_, makeStreamLumiMap(), NAifZeroUpdates_, dataset::name, name_, and findQualityFiles::size.
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 getDefinition(), 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_, dataset::name, name_, tracked_, and jsoncollector::TYPEUINT.
Referenced by getDefinition(), and 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_, dataset::name, name_, tracked_, and jsoncollector::TYPEUINT.
Referenced by getDefinition(), and jsoncollector::FastMonitor::registerStreamMonitorableUIntVecAtomic().
|
inline |
|
protected |
Definition at line 149 of file DataPoint.h.
Referenced by mergeAndSerialize(), and ~DataPoint().
|
protected |
Definition at line 150 of file DataPoint.h.
Referenced by mergeAndSerialize().
|
protected |
Definition at line 153 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), and mergeAndSerialize().
|
static |
Definition at line 123 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 129 of file DataPoint.h.
Referenced by deserialize(), getData(), and serialize().
|
static |
Definition at line 122 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 128 of file DataPoint.h.
Referenced by deserialize(), getDefinition(), mergeAndSerialize(), serialize(), and updateDefinition().
|
protected |
Definition at line 156 of file DataPoint.h.
Referenced by fastOutCSV().
|
protected |
Definition at line 132 of file DataPoint.h.
Referenced by discardCollected(), mergeAndSerialize(), and snapGlobal().
|
protected |
Definition at line 139 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapStreamAtomic(), and trackVectorUIntAtomic().
|
protected |
Definition at line 154 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), and snapStreamAtomic().
|
protected |
Definition at line 140 of file DataPoint.h.
Referenced by mergeAndSerialize(), and trackDummy().
|
protected |
Definition at line 142 of file DataPoint.h.
|
protected |
Definition at line 138 of file DataPoint.h.
Referenced by fastOutCSV(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 144 of file DataPoint.h.
Referenced by mergeAndRetrieveValue(), mergeAndSerialize(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 141 of file DataPoint.h.
Referenced by mergeAndSerialize(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 146 of file DataPoint.h.
Referenced by getName(), trackDummy(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().
|
protected |
Definition at line 152 of file DataPoint.h.
Referenced by mergeAndSerialize(), setNBins(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 145 of file DataPoint.h.
Referenced by mergeAndSerialize(), setOperation(), snap(), and snapStreamAtomic().
|
static |
Definition at line 121 of file DataPoint.h.
Referenced by deserialize(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 127 of file DataPoint.h.
Referenced by deserialize(), Config.Process::dumpConfig(), Config.Process::dumpPython(), mergeAndSerialize(), and serialize().
|
protected |
Definition at line 131 of file DataPoint.h.
Referenced by discardCollected(), makeStreamLumiMap(), mergeAndRetrieveValue(), mergeAndSerialize(), snap(), and snapStreamAtomic().
|
protected |
Definition at line 136 of file DataPoint.h.
Referenced by setStreamLumiPtr(), and snap().
|
protected |
Definition at line 133 of file DataPoint.h.
Referenced by fastOutCSV(), snap(), snapGlobal(), snapStreamAtomic(), trackMonitorable(), trackVectorUInt(), and trackVectorUIntAtomic().