File indexing completed on 2024-04-06 12:11:03
0001 #ifndef EventFilter_SiStripRawToDigi_WarningSummary
0002 #define EventFilter_SiStripRawToDigi_WarningSummary 1
0003
0004 #include <string>
0005 #include <map>
0006
0007 namespace sistrip {
0008 class WarningSummary {
0009 public:
0010 WarningSummary(const std::string& category, const std::string& name, bool debug = false)
0011 : m_debug(debug), m_category(category), m_name(name) {}
0012
0013 void add(const std::string& message, const std::string& details = "");
0014 void printSummary() const;
0015
0016 private:
0017 bool m_debug;
0018 std::string m_category;
0019 std::string m_name;
0020 std::map<std::string, std::size_t> m_warnings;
0021 };
0022 }
0023 #endif