CMS 3D CMS Logo

SummaryPlotXmlParser.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
2 #define DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
3 
6 #include <iostream>
7 #include <sstream>
8 #include <string>
9 #include <vector>
10 #include <map>
11 #include <cassert>
12 #include <boost/property_tree/xml_parser.hpp>
13 #include <boost/property_tree/ptree.hpp>
14 
16 
18 std::ostream& operator<<(std::ostream&, const SummaryPlotXmlParser&);
19 
27 public:
28  // ---------- Co(de)nstructors and consts ----------
29 
32 
35 
36  // ---------- Public interface ----------
37 
39  void parseXML(const std::string& xml_file);
40 
42  std::vector<SummaryPlot> summaryPlots(const sistrip::RunType&);
43 
45  void print(std::stringstream&) const;
46 
47 private:
48  // ---------- Private member data ----------
49 
51  std::map<sistrip::RunType, std::vector<SummaryPlot> > plots_;
52 
53  // RunType tags and attributes
54  static const std::string rootTag_;
55  static const std::string runTypeTag_;
56  static const std::string runTypeAttr_;
57 
58  // SummaryPlot tags and attributes
62  static const std::string viewAttr_;
63  static const std::string levelAttr_;
65 };
66 
67 #endif // DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
operator<<
std::ostream & operator<<(std::ostream &, const SummaryPlotXmlParser &)
Definition: SummaryPlotXmlParser.cc:98
SummaryPlotXmlParser::presentationAttr_
static const std::string presentationAttr_
Definition: SummaryPlotXmlParser.h:61
SummaryPlotXmlParser::plots_
std::map< sistrip::RunType, std::vector< SummaryPlot > > plots_
Definition: SummaryPlotXmlParser.h:51
SummaryPlotXmlParser::SummaryPlotXmlParser
SummaryPlotXmlParser()
Definition: SummaryPlotXmlParser.cc:22
sistrip::RunType
RunType
Definition: ConstantsForRunType.h:70
SummaryPlot.h
SummaryPlotXmlParser::viewAttr_
static const std::string viewAttr_
Definition: SummaryPlotXmlParser.h:62
SummaryPlotXmlParser::rootTag_
static const std::string rootTag_
Definition: SummaryPlotXmlParser.h:54
SummaryPlotXmlParser::summaryPlotTag_
static const std::string summaryPlotTag_
Definition: SummaryPlotXmlParser.h:59
SummaryPlotXmlParser::print
void print(std::stringstream &) const
Definition: SummaryPlotXmlParser.cc:107
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripConstants.h
SummaryPlotXmlParser::granularityAttr_
static const std::string granularityAttr_
Definition: SummaryPlotXmlParser.h:64
SummaryPlotXmlParser::~SummaryPlotXmlParser
~SummaryPlotXmlParser()
Definition: SummaryPlotXmlParser.h:34
SummaryPlotXmlParser::levelAttr_
static const std::string levelAttr_
Definition: SummaryPlotXmlParser.h:63
SummaryPlotXmlParser
Parses the "summary plot" xml configuration file.
Definition: SummaryPlotXmlParser.h:26
SummaryPlotXmlParser::runTypeAttr_
static const std::string runTypeAttr_
Definition: SummaryPlotXmlParser.h:56
SummaryPlotXmlParser::runTypeTag_
static const std::string runTypeTag_
Definition: SummaryPlotXmlParser.h:55
SummaryPlotXmlParser::parseXML
void parseXML(const std::string &xml_file)
Definition: SummaryPlotXmlParser.cc:41
SummaryPlotXmlParser::summaryPlots
std::vector< SummaryPlot > summaryPlots(const sistrip::RunType &)
Definition: SummaryPlotXmlParser.cc:26
SummaryPlotXmlParser::monitorableAttr_
static const std::string monitorableAttr_
Definition: SummaryPlotXmlParser.h:60