#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 22 of file DataPointDefinition.h.
|
inlineoverride |
Definition at line 27 of file DataPointDefinition.h.
void DataPointDefinition::addLegendItem | ( | std::string const & | name, |
std::string const & | type, | ||
std::string const & | operation | ||
) |
Definition at line 93 of file DataPointDefinition.cc.
References Skims_PA_cff::name, opNames_, typeNames_, and varNames_.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and RawEventFileWriterForBU::RawEventFileWriterForBU().
|
overridevirtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 61 of file DataPointDefinition.cc.
References defaultGroup_, mps_fire::i, OPERATION, opNames_, PARAM_NAME, findQualityFiles::size, TYPE, typeNames_, and varNames_.
|
static |
Loads a DataPointDefinition from a specified reference
Definition at line 32 of file DataPointDefinition.cc.
References jsoncollector::JSONSerializer::deserialize(), LEGEND, jsoncollector::FileIO::readStringFromFile(), setDefaultGroup(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by jsoncollector::FastMonitor::addFastPathDefinition(), and jsoncollector::FastMonitor::FastMonitor().
|
inline |
|
inline |
Returns a LegendItem object ref at the specified index
Definition at line 44 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 78 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().
|
inline |
bool DataPointDefinition::isPopulated | ( | ) | const |
Returns true if the legend_ has elements
Definition at line 72 of file DataPointDefinition.cc.
References varNames_.
|
overridevirtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 50 of file DataPointDefinition.cc.
References defaultGroup_, relativeConstraints::empty, mps_fire::i, OPERATION, opNames_, PARAM_NAME, TYPE, typeNames_, and varNames_.
|
inline |
Definition at line 54 of file DataPointDefinition.h.
References defaultGroup_, and watchdog::group.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getDataPointDefinitionFor(), and RawEventFileWriterForBU::RawEventFileWriterForBU().
|
static |
Definition at line 71 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 65 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 70 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 68 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 75 of file DataPointDefinition.h.
|
private |
Definition at line 85 of file DataPointDefinition.h.
Referenced by deserialize(), serialize(), and setDefaultGroup().
|
private |
Definition at line 84 of file DataPointDefinition.h.
Referenced by getDefFilePath().
|
static |
Definition at line 67 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 74 of file DataPointDefinition.h.
Referenced by getDataPointDefinitionFor().
|
static |
Definition at line 69 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 77 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 83 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getOperationFor(), getOperations(), and serialize().
|
static |
Definition at line 76 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
static |
Definition at line 66 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 64 of file DataPointDefinition.h.
Referenced by evf::EvFOutputJSONWriter::EvFOutputJSONWriter(), getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 78 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 82 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), and serialize().
|
private |
Definition at line 81 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getNames(), isPopulated(), and serialize().