CMS 3D CMS Logo

RPCAMCLinkCounters.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_RPCAMCLinkCounters_h
2 #define DataFormats_RPCDigi_RPCAMCLinkCounters_h
3 
4 #include <cstdint>
5 #include <map>
6 
8 
10 {
11 public:
12  typedef std::map<std::pair<unsigned int, std::uint32_t>, unsigned int> map_type;
13 
14 public:
16 
17  void add(unsigned int event, RPCAMCLink const & link, unsigned int count = 1);
18  void reset();
19  void reset(unsigned int event);
20  void reset(unsigned int event, RPCAMCLink const & link);
21 
22  map_type const & getCounters() const;
23 
24 protected:
25  map_type type_link_count_;
26 };
27 
28 #include "DataFormats/RPCDigi/interface/RPCAMCLinkCounters.icc"
29 
30 #endif // DataFormats_RPCDigi_RPCAMCLinkCounters_h
std::map< std::pair< unsigned int, std::uint32_t >, unsigned int > map_type
void add(unsigned int event, RPCAMCLink const &link, unsigned int count=1)
map_type const & getCounters() const
Definition: event.py:1