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 public:
51  L1MuDTSEU(const L1MuDTSectorProcessor& sp, Extrapolation ext, unsigned int tsId);
52 
54  ~L1MuDTSEU() override;
55 
57  void run(const edm::EventSetup& c) override;
58 
60  void reset() override;
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
L1MuDTSEU::eux
const std::vector< L1MuDTEUX * > & eux() const
return pointer to an Extrapolator
Definition: L1MuDTSEU.h:90
ext
Definition: memstream.h:15
L1MuDTSEU::load
void load(const L1MuDTTrackSegPhi *startTS)
load data into the SEU
Definition: L1MuDTSEU.h:66
L1MuDTSEU::qsTable
const std::bitset< 12 > & qsTable() const
return Quality Sorter table
Definition: L1MuDTSEU.h:72
L1MuDTEUX
Definition: L1MuDTEUX.h:48
L1MuDTSEU::reset
void reset() override
reset SEU
Definition: L1MuDTSEU.cc:147
L1MuDTSEU::m_startTS
const L1MuDTTrackSegPhi * m_startTS
Definition: L1MuDTSEU.h:100
L1MuDTSEU::exTable
const std::bitset< 12 > & exTable() const
return Extrapolator table
Definition: L1MuDTSEU.h:69
L1MuDTSEU::m_ext
Extrapolation m_ext
Definition: L1MuDTSEU.h:97
Extrapolation
Extrapolation
Definition: L1MuDTExtParam.h:22
L1MuDTSEU::L1MuDTSEU
L1MuDTSEU(const L1MuDTSectorProcessor &sp, Extrapolation ext, unsigned int tsId)
constructor
Definition: L1MuDTSEU.cc:50
L1AbstractProcessor
Definition: L1AbstractProcessor.h:34
L1MuDTSEU::m_EXtable
std::bitset< 12 > m_EXtable
Definition: L1MuDTSEU.h:104
L1MuDTExtParam.h
L1MuDTSEU::ext
Extrapolation ext() const
return extrapolation type
Definition: L1MuDTSEU.h:78
L1MuDTSEU::m_sp
const L1MuDTSectorProcessor & m_sp
Definition: L1MuDTSEU.h:96
L1AbstractProcessor::run
virtual void run()
run processor logic
Definition: L1AbstractProcessor.h:40
L1MuDTSEU::isOwnWheelSEU
bool isOwnWheelSEU() const
is it a own wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:84
L1MuDTSEU::m_QStable
std::bitset< 12 > m_QStable
Definition: L1MuDTSEU.h:105
edm::EventSetup
Definition: EventSetup.h:58
L1MuDTSEU::m_EUXs
std::vector< L1MuDTEUX * > m_EUXs
Definition: L1MuDTSEU.h:101
L1MuDTSEU::m_startTS_Id
unsigned int m_startTS_Id
Definition: L1MuDTSEU.h:98
L1AbstractProcessor.h
L1MuDTSectorProcessor
Definition: L1MuDTSectorProcessor.h:53
L1MuDTSEU::numberOfExt
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuDTSEU.cc:173
L1MuDTSEU::tsId
unsigned int tsId() const
return start track segment identifier (relative address)
Definition: L1MuDTSEU.h:81
L1MuDTSEU::~L1MuDTSEU
~L1MuDTSEU() override
destructor
Definition: L1MuDTSEU.cc:65
L1MuDTERS
Definition: L1MuDTERS.h:43
L1MuDTSEU::m_ERS
L1MuDTERS * m_ERS
Definition: L1MuDTSEU.h:102
L1MuDTSEU::isNextWheelSEU
bool isNextWheelSEU() const
is it a next wheel Single Extrapolation Unit
Definition: L1MuDTSEU.h:87
L1MuDTTrackSegPhi
Definition: L1MuDTTrackSegPhi.h:36
L1MuDTSEU
Definition: L1MuDTSEU.h:48
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
L1MuDTSEU::ers
const L1MuDTERS * ers() const
return pointer to Extrapolation Result Selector
Definition: L1MuDTSEU.h:93