Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:29

0001 #ifndef EventFilter_CTPPSRawToDigi_CTPPSRawToDigiErrorSummary
0002 #define EventFilter_CTPPSRawToDigi_CTPPSRawToDigiErrorSummary
0003 
0004 #include <string>
0005 #include <map>
0006 
0007 class CTPPSRawToDigiErrorSummary {
0008 public:
0009   CTPPSRawToDigiErrorSummary(const std::string& category, const std::string& name, bool debug = false)
0010       : m_debug(debug), m_category(category), m_name(name) {}
0011 
0012   void add(const std::string& message, const std::string& details = "");
0013   void printSummary() const;
0014 
0015 private:
0016   bool m_debug;
0017   std::string m_category;
0018   std::string m_name;
0019   std::map<std::string, std::size_t> m_errors;
0020 };
0021 #endif