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 
22  RPCWheelMap( int );
23 
24  void addHit( int , int , int );
25 
26  void prepareData();
27 
28  int wheelid() const { return m_wheelid; };
29 
30  int wheelIdx() const { return (m_wheelid+2); };
31 
32  std::array<TTUInput,m_maxBx> m_ttuinVec;
33 
34 protected:
35 
36 private:
37  int m_bx;
38  int m_wheelid;
39 
40  std::array<std::bitset<6>,m_maxSectors> m_wheelMap;
41  std::array<std::bitset<6>,m_maxSectors * m_maxBx> m_wheelMapBx;
42 
43  bool m_debug;
44 
45 };
46 #endif // RPCWHEELMAP_H
std::array< TTUInput, m_maxBx > m_ttuinVec
Definition: RPCWheelMap.h:30
bool m_debug
Definition: RPCWheelMap.h:43
void prepareData()
Definition: RPCWheelMap.cc:37
std::array< std::bitset< 6 >, m_maxSectors > m_wheelMap
Definition: RPCWheelMap.h:40
#define constexpr
static constexpr int m_maxBx
Definition: RPCWheelMap.h:16
RPCWheelMap(int)
Definition: RPCWheelMap.cc:18
int wheelIdx() const
Definition: RPCWheelMap.h:30
int wheelid() const
Definition: RPCWheelMap.h:28
std::array< std::bitset< 6 >, m_maxSectors *m_maxBx > m_wheelMapBx
Definition: RPCWheelMap.h:41
static constexpr int m_maxBxWindow
Definition: RPCWheelMap.h:18
static constexpr int m_maxSectors
Definition: RPCWheelMap.h:17
void addHit(int, int, int)
Definition: RPCWheelMap.cc:26