Go to the documentation of this file.
19 #ifndef CSCDQM_Collection_H
20 #define CSCDQM_Collection_H
28 #include <xercesc/parsers/XercesDOMParser.hpp>
29 #include <xercesc/dom/DOMNodeList.hpp>
30 #include <xercesc/dom/DOMElement.hpp>
62 typedef std::map<std::string, CoHistoProps>
CoHisto;
108 const int def_value = 0.0);
std::map< std::string, CoHistoProps > CoHisto
Abstract Base Histogram Definition.
xercesc::DOMElement DOMElement
void bookCSCHistos(const HwId crateId, const HwId dmbId) const
Book Chamber Histograms.
static const char XML_BOOK_HISTO_TYPE[]
xercesc::XMLException XMLException
xercesc::XercesDOMParser XercesDOMParser
static const char XML_BOOK_HISTO_TITLE[]
static const char XML_BOOK_NAME_TO[]
static const char XML_BOOK_DEFINITION_ID[]
Manage collection of histograms, load histogram definitions from XML file and book histograms by call...
static const char XML_BOOK_DEFINITION_REF[]
static const char XML_BOOK_ONDEMAND[]
static std::string & getHistoValue(const CoHistoProps &h, const std::string &name, std::string &value, const std::string &def_value="")
Find string histogram value in map.
Collection(Configuration *const p_config)
Constructor.
xercesc::DOMNodeList DOMNodeList
xercesc::DOMDocument DOMDocument
xercesc::DOMNamedNodeMap DOMNamedNodeMap
static const int DEF_HISTO_COLOR
static const char XML_BOOK_ONDEMAND_FALSE[]
static const bool checkHistoValue(const CoHistoProps &h, const std::string &name, std::string &value)
Find string histogram value in map.
static const char XML_BOOK_NAME_FROM[]
void book(const HistoDef &h, const CoHistoProps &p, const std::string &folder) const
Book histogram.
static const int ParseAxisLabels(const std::string &s, std::map< int, std::string > &labels)
Parse Axis label string and return values in vector.
void bookDDUHistos(const HwId dduId) const
Book DDU histograms.
xercesc::XMLString XMLString
static const char XML_BOOK_ONDEMAND_TRUE[]
static void getNodeProperties(DOMNode *&node, CoHistoProps &hp)
Extract and write single histogram properties from XML node to map.
void bookFEDHistos(const HwId fedId) const
Book FED histograms.
void load()
Load XML file and fill definition map(s)
CSCDQM Framework Global Configuration.
const bool isOnDemand(const HistoName &name) const
Check if the histogram is on demand (by histogram name)
xercesc::XMLPlatformUtils XMLPlatformUtils
static const char XML_BOOK_HISTO_PREFIX[]
void bookEMUHistos() const
Book EMU histograms.
std::map< std::string, CoHisto > CoHistoMap
static const char XML_BOOK_HISTO_NAME[]
void printCollection() const
Print collection of available histograms and their parameters.
static const char XML_BOOK_DEFINITION[]
static const char XML_BOOK_HISTOGRAM[]
std::map< std::string, std::string > CoHistoProps