CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuDTSEU.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUDT_SEU_H
18 #define L1MUDT_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 //------------------------------------
38 class L1MuDTTrackSegPhi;
39 class L1MuDTEUX;
40 class L1MuDTERS;
41 class L1MuDTExtLut;
42 class L1MuDTTFParameters;
43 
44 // ---------------------
45 // -- Class Interface --
46 // ---------------------
47 
48 class L1MuDTSEU {
49 public:
51  L1MuDTSEU(const L1MuDTSectorProcessor& sp, Extrapolation ext, unsigned int tsId);
52 
54  ~L1MuDTSEU();
55 
57  void run(const L1MuDTExtLut& extLUTs, const L1MuDTTFParameters& pars);
58 
60  void reset();
61 
63  void reset(unsigned int relAdr);
64 
66  inline void load(const L1MuDTTrackSegPhi* 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<L1MuDTEUX*>& eux() const { return m_EUXs; }
91 
93  inline const L1MuDTERS* 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 L1MuDTTrackSegPhi* m_startTS; // start track segment
101  std::vector<L1MuDTEUX*> m_EUXs; // vector of Extrapolators
102  L1MuDTERS* 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
void run(const L1MuDTExtLut &extLUTs, const L1MuDTTFParameters &pars)
run SEU
Definition: L1MuDTSEU.cc:85
const std::bitset< 12 > & qsTable() const
return Quality Sorter table
Definition: L1MuDTSEU.h:72
Extrapolation m_ext
Definition: L1MuDTSEU.h:97
Extrapolation ext() const
return extrapolation type
Definition: L1MuDTSEU.h:78
void reset()
reset SEU
Definition: L1MuDTSEU.cc:147
void load(const L1MuDTTrackSegPhi *startTS)
load data into the SEU
Definition: L1MuDTSEU.h:66
unsigned int m_startTS_Id
Definition: L1MuDTSEU.h:98
std::vector< L1MuDTEUX * > m_EUXs
Definition: L1MuDTSEU.h:101
L1MuDTSEU(const L1MuDTSectorProcessor &sp, Extrapolation ext, unsigned int tsId)
constructor
Definition: L1MuDTSEU.cc:50
std::bitset< 12 > m_EXtable
Definition: L1MuDTSEU.h:104
std::bitset< 12 > m_QStable
Definition: L1MuDTSEU.h:105
const L1MuDTERS * ers() const
return pointer to Extrapolation Result Selector
Definition: L1MuDTSEU.h:93
Extrapolation
const L1MuDTSectorProcessor & m_sp
Definition: L1MuDTSEU.h:96
bool isNextWheelSEU() const
is it a next wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:87
const std::bitset< 12 > & exTable() const
return Extrapolator table
Definition: L1MuDTSEU.h:69
bool isOwnWheelSEU() const
is it a own wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:84
L1MuDTERS * m_ERS
Definition: L1MuDTSEU.h:102
const L1MuDTTrackSegPhi * m_startTS
Definition: L1MuDTSEU.h:100
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuDTSEU.cc:173
~L1MuDTSEU()
destructor
Definition: L1MuDTSEU.cc:65
const std::vector< L1MuDTEUX * > & eux() const
return pointer to an Extrapolator
Definition: L1MuDTSEU.h:90
unsigned int tsId() const
return start track segment identifier (relative address)
Definition: L1MuDTSEU.h:81