CMS 3D CMS Logo

SummaryPlot.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripCommissioningSummary_SummaryPlot_H
2 #define DQM_SiStripCommissioningSummary_SummaryPlot_H
3 
5 #include <iostream>
6 #include <sstream>
7 #include <string>
8 
9 class SummaryPlot;
10 
12 std::ostream& operator<<(std::ostream&, const SummaryPlot&);
13 
19 class SummaryPlot {
20 public:
21  // ---------- Con(de)structors ----------
22 
26  const std::string& granularity,
27  const std::string& level);
28 
30  SummaryPlot(const SummaryPlot&);
31 
33  SummaryPlot();
34 
36  ~SummaryPlot() { ; }
37 
38  // ---------- Access to member data ----------
39 
41  inline const sistrip::Monitorable& monitorable() const;
42 
44  inline const sistrip::Presentation& presentation() const;
45 
47  inline const sistrip::View& view() const;
48 
50  inline const sistrip::Granularity& granularity() const;
51 
53  inline const std::string& level() const;
54 
55  // ---------- Utility methods ----------
56 
58  inline const bool& isValid() const;
59 
61  void reset();
62 
64  void print(std::stringstream&) const;
65 
66 private:
67  // ---------- Private methods ----------
68 
70  void check();
71 
72  // ---------- Private member data ----------
73 
75 
77 
79 
81 
83 
84  bool isValid_;
85 };
86 
87 // ---------- Inline methods ----------
88 
91 const sistrip::View& SummaryPlot::view() const { return view_; }
93 const std::string& SummaryPlot::level() const { return level_; }
94 const bool& SummaryPlot::isValid() const { return isValid_; }
95 
96 #endif // DQM_SiStripCommissioningSummary_SummaryPlot_H
void print(std::stringstream &) const
Definition: SummaryPlot.cc:134
sistrip::Presentation pres_
Definition: SummaryPlot.h:76
sistrip::Monitorable mon_
Definition: SummaryPlot.h:74
void check()
Definition: SummaryPlot.cc:103
std::string level_
Definition: SummaryPlot.h:82
sistrip::View view_
Definition: SummaryPlot.h:78
const sistrip::Granularity & granularity() const
Definition: SummaryPlot.h:92
Class holding info that defines a summary plot.
Definition: SummaryPlot.h:19
const sistrip::Presentation & presentation() const
Definition: SummaryPlot.h:90
sistrip::Granularity gran_
Definition: SummaryPlot.h:80
const std::string & level() const
Definition: SummaryPlot.h:93
const bool & isValid() const
Definition: SummaryPlot.h:94
const sistrip::View & view() const
Definition: SummaryPlot.h:91
void reset()
Definition: SummaryPlot.cc:92
bool isValid_
Definition: SummaryPlot.h:84
const sistrip::Monitorable & monitorable() const
Definition: SummaryPlot.h:89
std::ostream & operator<<(std::ostream &, const SummaryPlot &)
Definition: SummaryPlot.cc:145