RPCAMCLinkCounters

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#ifndef DataFormats_RPCDigi_RPCAMCLinkCounters_h
#define DataFormats_RPCDigi_RPCAMCLinkCounters_h

#include <cstdint>
#include <map>

#include "CondFormats/RPCObjects/interface/RPCAMCLink.h"

class RPCAMCLinkCounters {
public:
  typedef std::map<std::pair<unsigned int, std::uint32_t>, unsigned int> map_type;

public:
  RPCAMCLinkCounters();

  void add(unsigned int event, RPCAMCLink const& link, unsigned int count = 1);
  void reset();
  void reset(unsigned int event);
  void reset(unsigned int event, RPCAMCLink const& link);

  map_type const& getCounters() const;

protected:
  map_type type_link_count_;
};

#include "DataFormats/RPCDigi/interface/RPCAMCLinkCounters.icc"

#endif  // DataFormats_RPCDigi_RPCAMCLinkCounters_h