#include <ObjectMerger.h>
Static Public Member Functions | |
static DataPoint * | csvToJson (std::string &olCSV, DataPointDefinition *dpd, std::string defPath) |
static bool | getDataPointDefinitionFor (std::string defFilePath, DataPointDefinition &def) |
static DataPoint * | merge (const std::vector< DataPoint * > &objectsToMerge, std::string &outcomeMessage, bool onlyHistos) |
Static Private Member Functions | |
static std::string | applyOperation (const std::vector< std::string > &dataVector, std::string operationName) |
static bool | checkConsistency (const std::vector< DataPoint * > &objectsToMerge, std::string &outcomeMessage) |
Definition at line 16 of file ObjectMerger.h.
|
staticprivate |
Definition at line 149 of file ObjectMerger.cc.
References jsoncollector::Operations::avg(), jsoncollector::Operations::AVG, jsoncollector::Operations::cat(), jsoncollector::Operations::CAT, gather_cfg::cout, jsoncollector::Operations::histo(), jsoncollector::Operations::HISTO, jsoncollector::Operations::same(), jsoncollector::Operations::SAME, jsoncollector::Operations::sum(), jsoncollector::Operations::SUM, and jsoncollector::Utils::vectorStringToDouble().
Referenced by merge().
|
staticprivate |
Definition at line 190 of file ObjectMerger.cc.
References AlCaHLTBitMon_QueryRunRegistry::getData(), and i.
Referenced by merge().
|
static |
Transforms the CSV string into a DataPoint object using the definition
Definition at line 117 of file ObjectMerger.cc.
References jsoncollector::DataPoint::addToData(), jsoncollector::Utils::bumpIndex(), reco::dp, statics::field, jsoncollector::DataPointDefinition::getLegendFor(), jsoncollector::LegendItem::getOperation(), jsoncollector::Operations::HISTO, timingPdfMaker::histo, i, getHLTprescales::index, jsoncollector::Utils::intArrayToString(), jsoncollector::DataPoint::resetData(), and jsoncollector::DataPoint::setDefinition().
Referenced by jsoncollector::FastMonitor::outputFullHistoDataPoint().
|
static |
Loads DataPointDefinition into the specified reference
Definition at line 103 of file ObjectMerger.cc.
References gather_cfg::cout, jsoncollector::JSONSerializer::deserialize(), and jsoncollector::FileIO::readStringFromFile().
Referenced by jsoncollector::DataPointMonitor::DataPointMonitor(), jsoncollector::FastMonitor::FastMonitor(), and merge().
|
static |
Merges the DataPoint objects in the vector by getting their definition and applying the required operations If the onlyHistos arg is set to true, only histograms will be merged, will for other params the latest value (@ objectsToMerge.size() - 1) will be taken
Definition at line 23 of file ObjectMerger.cc.
References applyOperation(), checkConsistency(), AlCaHLTBitMon_QueryRunRegistry::getData(), getDataPointDefinitionFor(), jsoncollector::DataPointDefinition::getLegend(), jsoncollector::DataPointDefinition::getLegendFor(), jsoncollector::LegendItem::getOperation(), jsoncollector::Operations::HISTO, i, jsoncollector::Utils::matchExactly(), NULL, and source.
Referenced by jsoncollector::FastMonitor::outputFullHistoDataPoint().