CMS 3D CMS Logo

RPCWheelMap.h
Go to the documentation of this file.
1 #ifndef RPCWHEELMAP_H
2 #define RPCWHEELMAP_H 1
3 
4 // Include files
6 #include <bitset>
7 
14 class RPCWheelMap {
15 private:
16  static constexpr int m_maxBx = 7;
17  static constexpr int m_maxSectors = 12;
18  static constexpr int m_maxBxWindow = 3; //... considering that we have a bxing in the range [-3,+3]
19 
20 public:
21  RPCWheelMap(int);
22 
23  void addHit(int, int, int);
24 
25  void prepareData();
26 
27  int wheelid() const { return m_wheelid; };
28 
29  int wheelIdx() const { return (m_wheelid + 2); };
30 
31  std::array<TTUInput, m_maxBx> m_ttuinVec;
32 
33 protected:
34 private:
35  int m_bx;
36  int m_wheelid;
37 
38  std::array<std::bitset<6>, m_maxSectors> m_wheelMap;
39  std::array<std::bitset<6>, m_maxSectors * m_maxBx> m_wheelMapBx;
40 
41  bool m_debug;
42 };
43 #endif // RPCWHEELMAP_H
std::array< TTUInput, m_maxBx > m_ttuinVec
Definition: RPCWheelMap.h:29
bool m_debug
Definition: RPCWheelMap.h:41
void prepareData()
Definition: RPCWheelMap.cc:30
static constexpr int m_maxBx
Definition: RPCWheelMap.h:16
RPCWheelMap(int)
Definition: RPCWheelMap.cc:16
std::array< std::bitset< 6 >, m_maxSectors > m_wheelMap
Definition: RPCWheelMap.h:38
int wheelIdx() const
Definition: RPCWheelMap.h:29
std::array< std::bitset< 6 >, m_maxSectors *m_maxBx > m_wheelMapBx
Definition: RPCWheelMap.h:39
int wheelid() const
Definition: RPCWheelMap.h:27
static constexpr int m_maxBxWindow
Definition: RPCWheelMap.h:18
#define constexpr
static constexpr int m_maxSectors
Definition: RPCWheelMap.h:17
void addHit(int, int, int)
Definition: RPCWheelMap.cc:22