CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
11  typedef std::map<std::pair<unsigned int, std::uint32_t>, unsigned int> map_type;
12 
13 public:
15 
16  void add(unsigned int event, RPCAMCLink const& link, unsigned int count = 1);
17  void reset();
18  void reset(unsigned int event);
19  void reset(unsigned int event, RPCAMCLink const& link);
20 
21  map_type const& getCounters() const;
22 
23 protected:
25 };
26 
27 #include "DataFormats/RPCDigi/interface/RPCAMCLinkCounters.icc"
28 
29 #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