CMS 3D CMS Logo

L1MuBMSEU.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUBM_SEU_H
18 #define L1MUBM_SEU_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <utility>
25 #include <vector>
26 #include <bitset>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
40 class L1MuBMTrackSegPhi;
41 class L1MuBMEUX;
42 class L1MuBMERS;
43 
44 // ---------------------
45 // -- Class Interface --
46 // ---------------------
47 
48 class L1MuBMSEU {
49 public:
51  L1MuBMSEU(const L1MuBMSectorProcessor& sp, Extrapolation ext, unsigned int tsId);
52 
54  ~L1MuBMSEU();
55 
57  void run(const L1TMuonBarrelParams& params);
58 
60  void reset();
61 
63  void reset(unsigned int relAdr);
64 
66  inline void load(const L1MuBMTrackSegPhi* startTS) { m_startTS = startTS; }
67 
69  const std::bitset<12>& exTable() const { return m_EXtable; }
70 
72  const std::bitset<12>& qsTable() const { return m_QStable; }
73 
75  int numberOfExt() const;
76 
78  inline Extrapolation ext() const { return m_ext; }
79 
81  inline unsigned int tsId() const { return m_startTS_Id; }
82 
84  inline bool isOwnWheelSEU() const { return (m_startTS_Id == 0 || m_startTS_Id == 1); }
85 
87  inline bool isNextWheelSEU() const { return (m_startTS_Id == 2 || m_startTS_Id == 3); }
88 
90  inline const std::vector<L1MuBMEUX*>& eux() const { return m_EUXs; }
91 
93  inline const L1MuBMERS* ers() const { return m_ERS; }
94 
95 private:
97  Extrapolation m_ext; // Extrapolation type
98  unsigned int m_startTS_Id; // rel. address of start TS
99 
100  const L1MuBMTrackSegPhi* m_startTS; // start track segment
101  std::vector<L1MuBMEUX*> m_EUXs; // vector of Extrapolators
102  L1MuBMERS* m_ERS; // Extrapolation Result Selector
103 
104  std::bitset<12> m_EXtable; // Extrapolator table
105  std::bitset<12> m_QStable; // Quality Selector table
106 };
107 
108 #endif
bool isNextWheelSEU() const
is it a next wheel Single Extrapolation Unit
Definition: L1MuBMSEU.h:87
const std::bitset< 12 > & qsTable() const
return Quality Sorter table
Definition: L1MuBMSEU.h:72
const L1MuBMSectorProcessor & m_sp
Definition: L1MuBMSEU.h:96
unsigned int m_startTS_Id
Definition: L1MuBMSEU.h:98
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuBMSEU.cc:173
const L1MuBMERS * ers() const
return pointer to Extrapolation Result Selector
Definition: L1MuBMSEU.h:93
void run(const L1TMuonBarrelParams &params)
run SEU
Definition: L1MuBMSEU.cc:85
const std::vector< L1MuBMEUX * > & eux() const
return pointer to an Extrapolator
Definition: L1MuBMSEU.h:90
unsigned int tsId() const
return start track segment identifier (relative address)
Definition: L1MuBMSEU.h:81
void load(const L1MuBMTrackSegPhi *startTS)
load data into the SEU
Definition: L1MuBMSEU.h:66
std::vector< L1MuBMEUX * > m_EUXs
Definition: L1MuBMSEU.h:101
std::bitset< 12 > m_QStable
Definition: L1MuBMSEU.h:105
void reset()
reset SEU
Definition: L1MuBMSEU.cc:147
L1MuBMSEU(const L1MuBMSectorProcessor &sp, Extrapolation ext, unsigned int tsId)
constructor
Definition: L1MuBMSEU.cc:50
Extrapolation
~L1MuBMSEU()
destructor
Definition: L1MuBMSEU.cc:65
const std::bitset< 12 > & exTable() const
return Extrapolator table
Definition: L1MuBMSEU.h:69
bool isOwnWheelSEU() const
is it a own wheel Single Extrapolation Unit
Definition: L1MuBMSEU.h:84
std::bitset< 12 > m_EXtable
Definition: L1MuBMSEU.h:104
L1MuBMERS * m_ERS
Definition: L1MuBMSEU.h:102
const L1MuBMTrackSegPhi * m_startTS
Definition: L1MuBMSEU.h:100
Definition: memstream.h:15
Extrapolation m_ext
Definition: L1MuBMSEU.h:97
Extrapolation ext() const
return extrapolation type
Definition: L1MuBMSEU.h:78