File indexing completed on 2024-04-06 12:05:08
0001 #ifndef DataFormats_RPCDigi_RPCAMCLinkCounters_h
0002 #define DataFormats_RPCDigi_RPCAMCLinkCounters_h
0003
0004 #include <cstdint>
0005 #include <map>
0006
0007 #include "CondFormats/RPCObjects/interface/RPCAMCLink.h"
0008
0009 class RPCAMCLinkCounters {
0010 public:
0011 typedef std::map<std::pair<unsigned int, std::uint32_t>, unsigned int> map_type;
0012
0013 public:
0014 RPCAMCLinkCounters();
0015
0016 void add(unsigned int event, RPCAMCLink const& link, unsigned int count = 1);
0017 void reset();
0018 void reset(unsigned int event);
0019 void reset(unsigned int event, RPCAMCLink const& link);
0020
0021 map_type const& getCounters() const;
0022
0023 protected:
0024 map_type type_link_count_;
0025 };
0026
0027 #include "DataFormats/RPCDigi/interface/RPCAMCLinkCounters.icc"
0028
0029 #endif