CMS 3D CMS Logo

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 
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
37 
40 class L1MuDTTrackSegPhi;
41 class L1MuDTEUX;
42 class L1MuDTERS;
43 
44 // ---------------------
45 // -- Class Interface --
46 // ---------------------
47 
49 
50  public:
51 
53  L1MuDTSEU(const L1MuDTSectorProcessor& sp, Extrapolation ext, unsigned int tsId );
54 
56  virtual ~L1MuDTSEU();
57 
59  virtual void run(const edm::EventSetup& c);
60 
62  virtual void reset();
63 
65  void reset(unsigned int relAdr);
66 
68  inline void load(const L1MuDTTrackSegPhi* startTS) { m_startTS = startTS; }
69 
71  const std::bitset<12>& exTable() const { return m_EXtable; }
72 
74  const std::bitset<12>& qsTable() const { return m_QStable; }
75 
77  int numberOfExt() const;
78 
80  inline Extrapolation ext() const { return m_ext; }
81 
83  inline unsigned int tsId() const { return m_startTS_Id; }
84 
86  inline bool isOwnWheelSEU() const { return ( m_startTS_Id == 0 || m_startTS_Id == 1 ); }
87 
89  inline bool isNextWheelSEU() const { return ( m_startTS_Id == 2 || m_startTS_Id == 3 ); }
90 
92  inline const std::vector<L1MuDTEUX*>& eux() const { return m_EUXs; }
93 
95  inline const L1MuDTERS* ers() const { return m_ERS; }
96 
97  private:
98 
100  Extrapolation m_ext; // Extrapolation type
101  unsigned int m_startTS_Id; // rel. address of start TS
102 
103  const L1MuDTTrackSegPhi* m_startTS; // start track segment
104  std::vector<L1MuDTEUX*> m_EUXs; // vector of Extrapolators
105  L1MuDTERS* m_ERS; // Extrapolation Result Selector
106 
107  std::bitset<12> m_EXtable; // Extrapolator table
108  std::bitset<12> m_QStable; // Quality Selector table
109 };
110 
111 #endif
const std::bitset< 12 > & qsTable() const
return Quality Sorter table
Definition: L1MuDTSEU.h:74
Extrapolation m_ext
Definition: L1MuDTSEU.h:100
Extrapolation ext() const
return extrapolation type
Definition: L1MuDTSEU.h:80
virtual void reset()
reset SEU
Definition: L1MuDTSEU.cc:155
void load(const L1MuDTTrackSegPhi *startTS)
load data into the SEU
Definition: L1MuDTSEU.h:68
unsigned int m_startTS_Id
Definition: L1MuDTSEU.h:101
std::vector< L1MuDTEUX * > m_EUXs
Definition: L1MuDTSEU.h:104
L1MuDTSEU(const L1MuDTSectorProcessor &sp, Extrapolation ext, unsigned int tsId)
constructor
Definition: L1MuDTSEU.cc:50
std::bitset< 12 > m_EXtable
Definition: L1MuDTSEU.h:107
virtual void run()
run processor logic
std::bitset< 12 > m_QStable
Definition: L1MuDTSEU.h:108
const L1MuDTERS * ers() const
return pointer to Extrapolation Result Selector
Definition: L1MuDTSEU.h:95
Extrapolation
const L1MuDTSectorProcessor & m_sp
Definition: L1MuDTSEU.h:99
bool isNextWheelSEU() const
is it a next wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:89
const std::bitset< 12 > & exTable() const
return Extrapolator table
Definition: L1MuDTSEU.h:71
bool isOwnWheelSEU() const
is it a own wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:86
L1MuDTERS * m_ERS
Definition: L1MuDTSEU.h:105
const L1MuDTTrackSegPhi * m_startTS
Definition: L1MuDTSEU.h:103
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuDTSEU.cc:187
Definition: sp.h:21
Definition: memstream.h:15
virtual ~L1MuDTSEU()
destructor
Definition: L1MuDTSEU.cc:69
const std::vector< L1MuDTEUX * > & eux() const
return pointer to an Extrapolator
Definition: L1MuDTSEU.h:92
unsigned int tsId() const
return start track segment identifier (relative address)
Definition: L1MuDTSEU.h:83