CMS 3D CMS Logo

WarningSummary.h
Go to the documentation of this file.
1 #ifndef EventFilter_SiStripRawToDigi_WarningSummary
2 #define EventFilter_SiStripRawToDigi_WarningSummary 1
3 
4 #include <string>
5 #include <map>
6 
7 namespace sistrip {
9 public:
11  : m_debug(debug)
12  , m_category(category)
13  , m_name(name)
14  {}
15 
16  void add(const std::string& message, const std::string& details="");
17  void printSummary() const;
18 
19 private:
20  bool m_debug;
23  std::map<std::string,std::size_t> m_warnings;
24 };
25 }
26 #endif // EventFilter_SiStripRawToDigi_WarningSummary
WarningSummary(const std::string &category, const std::string &name, bool debug=false)
void printSummary() const
sistrip classes
void add(const std::string &message, const std::string &details="")
#define debug
Definition: HDRShower.cc:19
std::map< std::string, std::size_t > m_warnings