00001 #ifndef DQM_SiStripCommissioningSummary_SummaryPlot_H 00002 #define DQM_SiStripCommissioningSummary_SummaryPlot_H 00003 00004 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h" 00005 #include <iostream> 00006 #include <sstream> 00007 #include <string> 00008 00009 class SummaryPlot; 00010 00012 std::ostream& operator<< ( std::ostream&, const SummaryPlot& ); 00013 00019 class SummaryPlot { 00020 00021 public: 00022 00023 // ---------- Con(de)structors ---------- 00024 00026 SummaryPlot( const std::string& monitorable, 00027 const std::string& presentation, 00028 const std::string& granularity, 00029 const std::string& level ); 00030 00032 SummaryPlot( const SummaryPlot& ); 00033 00035 SummaryPlot(); 00036 00038 ~SummaryPlot() {;} 00039 00040 // ---------- Access to member data ---------- 00041 00043 inline const sistrip::Monitorable& monitorable() const; 00044 00046 inline const sistrip::Presentation& presentation() const; 00047 00049 inline const sistrip::View& view() const; 00050 00052 inline const sistrip::Granularity& granularity() const; 00053 00055 inline const std::string& level() const; 00056 00057 // ---------- Utility methods ---------- 00058 00060 inline const bool& isValid() const; 00061 00063 void reset(); 00064 00066 void print( std::stringstream& ) const; 00067 00068 private: 00069 00070 // ---------- Private methods ---------- 00071 00073 void check(); 00074 00075 // ---------- Private member data ---------- 00076 00077 sistrip::Monitorable mon_; 00078 00079 sistrip::Presentation pres_; 00080 00081 sistrip::View view_; 00082 00083 sistrip::Granularity gran_; 00084 00085 std::string level_; 00086 00087 bool isValid_; 00088 00089 }; 00090 00091 // ---------- Inline methods ---------- 00092 00093 const sistrip::Monitorable& SummaryPlot::monitorable() const { return mon_; } 00094 const sistrip::Presentation& SummaryPlot::presentation() const { return pres_; } 00095 const sistrip::View& SummaryPlot::view() const { return view_; } 00096 const sistrip::Granularity& SummaryPlot::granularity() const { return gran_; } 00097 const std::string& SummaryPlot::level() const { return level_; } 00098 const bool& SummaryPlot::isValid() const { return isValid_; } 00099 00100 #endif // DQM_SiStripCommissioningSummary_SummaryPlot_H 00101 00102 00103