Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:38

0001 #ifndef RPCWHEELMAP_H
0002 #define RPCWHEELMAP_H 1
0003 
0004 // Include files
0005 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUInput.h"
0006 #include <bitset>
0007 
0008 /** @class RPCWheelMap RPCWheelMap.h
0009  *  
0010  *
0011  *  @author Andres Felipe Osorio Oliveros
0012  *  @date   2008-11-24
0013  */
0014 class RPCWheelMap {
0015 private:
0016   static constexpr int m_maxBx = 7;
0017   static constexpr int m_maxSectors = 12;
0018   static constexpr int m_maxBxWindow = 3;  //... considering that we have a bxing in the range [-3,+3]
0019 
0020 public:
0021   RPCWheelMap(int);
0022 
0023   void addHit(int, int, int);
0024 
0025   void prepareData();
0026 
0027   int wheelid() const { return m_wheelid; };
0028 
0029   int wheelIdx() const { return (m_wheelid + 2); };
0030 
0031   std::array<TTUInput, m_maxBx> m_ttuinVec;
0032 
0033 protected:
0034 private:
0035   int m_bx;
0036   int m_wheelid;
0037 
0038   std::array<std::bitset<6>, m_maxSectors> m_wheelMap;
0039   std::array<std::bitset<6>, m_maxSectors * m_maxBx> m_wheelMapBx;
0040 
0041   bool m_debug;
0042 };
0043 #endif  // RPCWHEELMAP_H