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 
8 #include <iostream>
9 #include <sstream>
10 #include <string>
11 #include <vector>
12 #include <map>
13 
15 
17 std::ostream& operator<< ( std::ostream&, const SummaryPlotXmlParser& );
18 
26 
27  public:
28 
29  // ---------- Co(de)nstructors and consts ----------
30 
33 
35  ~SummaryPlotXmlParser() override {;}
36 
37  // ---------- Public interface ----------
38 
40  void parseXML( const std::string& xml_file );
41 
43  std::vector<SummaryPlot> summaryPlots( const sistrip::RunType& );
44 
46  void print( std::stringstream& ) const;
47 
48  private:
49 
50  // ---------- Private member data ----------
51 
53  std::map< sistrip::RunType, std::vector<SummaryPlot> > plots_;
54 
55  // RunType tags and attributes
56  static const std::string rootTag_;
57  static const std::string runTypeTag_;
58  static const std::string runTypeAttr_;
59 
60  // SummaryPlot tags and attributes
64  static const std::string viewAttr_;
65  static const std::string levelAttr_;
67 
68 };
69 
70 #endif // DQM_SiStripCommissioningClients_SummaryPlotXmlParser_H
71 
72 
73 
static const std::string monitorableAttr_
std::map< sistrip::RunType, std::vector< SummaryPlot > > plots_
static const std::string rootTag_
static const std::string runTypeTag_
static const std::string presentationAttr_
static const std::string runTypeAttr_
void parseXML(const std::string &xml_file)
static const std::string granularityAttr_
std::ostream & operator<<(std::ostream &, const SummaryPlotXmlParser &)
void print(std::stringstream &) const
Parses the "summary plot" xml configuration file.
static const std::string viewAttr_
static const std::string summaryPlotTag_
std::vector< SummaryPlot > summaryPlots(const sistrip::RunType &)
static const std::string levelAttr_