#include <DataPointDefinition.h>
Public Member Functions | |
void | addLegendItem (std::string const &name, std::string const &type, std::string const &operation) |
DataPointDefinition () | |
void | deserialize (Json::Value &root) override |
std::string & | getDefFilePath () |
std::vector< std::string > const & | getNames () |
OperationType | getOperationFor (unsigned int index) |
std::vector< std::string > const & | getOperations () |
bool | isPopulated () const |
void | serialize (Json::Value &root) const override |
void | setDefaultGroup (std::string const &group) |
~DataPointDefinition () override | |
Public Member Functions inherited from jsoncollector::JsonSerializable | |
virtual | ~JsonSerializable () |
Static Public Member Functions | |
static bool | getDataPointDefinitionFor (std::string &defFilePath, DataPointDefinition *dpd, const std::string *defaultGroup=nullptr) |
Static Public Attributes | |
static const std::string | ADLER32 = "adler32" |
static const std::string | AVG = "avg" |
static const std::string | BINARYOR = "binaryOr" |
static const std::string | CAT = "cat" |
static const std::string | DATA = "data" |
static const std::string | HISTO = "histo" |
static const std::string | LEGEND = "legend" |
static const std::string | MERGE = "merge" |
static const std::string | OPERATION = "operation" |
static const std::string | PARAM_NAME = "name" |
static const std::string | SAME = "same" |
static const std::string | SUM = "sum" |
static const std::string | TYPE = "type" |
Private Attributes | |
std::string | defaultGroup_ |
std::string | defFilePath_ |
std::vector< std::string > | opNames_ |
std::vector< std::string > | typeNames_ |
std::vector< std::string > | varNames_ |
Definition at line 20 of file DataPointDefinition.h.
|
inline |
Definition at line 23 of file DataPointDefinition.h.
|
inlineoverride |
Definition at line 28 of file DataPointDefinition.h.
References deserialize(), isPopulated(), and serialize().
void DataPointDefinition::addLegendItem | ( | std::string const & | name, |
std::string const & | type, | ||
std::string const & | operation | ||
) |
Definition at line 91 of file DataPointDefinition.cc.
References opNames_, typeNames_, and varNames_.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), evf::RecoEventOutputModuleForFU< Consumer >::initRun(), RawEventFileWriterForBU::RawEventFileWriterForBU(), and setDefaultGroup().
|
overridevirtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 60 of file DataPointDefinition.cc.
References Json::Value::asString(), defaultGroup_, Json::Value::get(), mps_fire::i, Json::Value::isArray(), OPERATION, opNames_, PARAM_NAME, Json::Value::size(), findQualityFiles::size, TYPE, typeNames_, and varNames_.
Referenced by ~DataPointDefinition().
|
static |
Loads a DataPointDefinition from a specified reference
Definition at line 33 of file DataPointDefinition.cc.
References jsoncollector::JSONSerializer::deserialize(), LEGEND, jsoncollector::FileIO::readStringFromFile(), setDefaultGroup(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by jsoncollector::FastMonitor::addFastPathDefinition(), jsoncollector::FastMonitor::FastMonitor(), and getOperations().
|
inline |
Definition at line 59 of file DataPointDefinition.h.
References defFilePath_.
|
inline |
Returns a LegendItem object ref at the specified index
Definition at line 45 of file DataPointDefinition.h.
References varNames_.
Referenced by jsoncollector::FastMonitor::commit(), evf::EvFDaqDirector::getNFilesFromEoLS(), evf::EvFDaqDirector::grabNextJsonFile(), and evf::EvFDaqDirector::grabNextJsonFileAndUnlock().
OperationType DataPointDefinition::getOperationFor | ( | unsigned int | index | ) |
Definition at line 80 of file DataPointDefinition.cc.
References AVG, CAT, HISTO, jsoncollector::OPAVG, jsoncollector::OPCAT, jsoncollector::OPHISTO, opNames_, jsoncollector::OPSAME, jsoncollector::OPSUM, jsoncollector::OPUNKNOWN, SAME, and SUM.
Referenced by jsoncollector::FastMonitor::commit(), and setDefaultGroup().
|
inline |
Definition at line 46 of file DataPointDefinition.h.
References getDataPointDefinitionFor(), opNames_, and AlCaHLTBitMon_QueryRunRegistry::string.
bool DataPointDefinition::isPopulated | ( | ) | const |
Returns true if the legend_ has elements
Definition at line 72 of file DataPointDefinition.cc.
References varNames_.
Referenced by ~DataPointDefinition().
|
overridevirtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 48 of file DataPointDefinition.cc.
References Json::Value::append(), defaultGroup_, relativeConstraints::empty, mps_fire::i, OPERATION, opNames_, PARAM_NAME, TYPE, typeNames_, and varNames_.
Referenced by ~DataPointDefinition().
|
inline |
Definition at line 53 of file DataPointDefinition.h.
References addLegendItem(), defaultGroup_, getOperationFor(), edmIntegrityCheck::group, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getDataPointDefinitionFor(), evf::RecoEventOutputModuleForFU< Consumer >::initRun(), and RawEventFileWriterForBU::RawEventFileWriterForBU().
|
static |
Definition at line 70 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 64 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 69 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 67 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 74 of file DataPointDefinition.h.
|
private |
Definition at line 84 of file DataPointDefinition.h.
Referenced by deserialize(), serialize(), and setDefaultGroup().
|
private |
Definition at line 83 of file DataPointDefinition.h.
Referenced by getDefFilePath().
|
static |
Definition at line 66 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 73 of file DataPointDefinition.h.
Referenced by getDataPointDefinitionFor().
|
static |
Definition at line 68 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 76 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 82 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getOperationFor(), getOperations(), and serialize().
|
static |
Definition at line 75 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
static |
Definition at line 65 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 63 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 77 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 81 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), and serialize().
|
private |
Definition at line 80 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getNames(), isPopulated(), and serialize().