test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
37 
40 class L1MuBMTrackSegPhi;
41 class L1MuBMEUX;
42 class L1MuBMERS;
43 
44 // ---------------------
45 // -- Class Interface --
46 // ---------------------
47 
49 
50  public:
51 
53  L1MuBMSEU(const L1MuBMSectorProcessor& sp, Extrapolation ext, unsigned int tsId );
54 
56  virtual ~L1MuBMSEU();
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 L1MuBMTrackSegPhi* 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<L1MuBMEUX*>& eux() const { return m_EUXs; }
93 
95  inline const L1MuBMERS* 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 L1MuBMTrackSegPhi* m_startTS; // start track segment
104  std::vector<L1MuBMEUX*> m_EUXs; // vector of Extrapolators
105  L1MuBMERS* 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
Extrapolation ext() const
return extrapolation type
Definition: L1MuBMSEU.h:80
const L1MuBMERS * ers() const
return pointer to Extrapolation Result Selector
Definition: L1MuBMSEU.h:95
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuBMSEU.cc:187
const L1MuBMSectorProcessor & m_sp
Definition: L1MuBMSEU.h:99
unsigned int m_startTS_Id
Definition: L1MuBMSEU.h:101
const std::vector< L1MuBMEUX * > & eux() const
return pointer to an Extrapolator
Definition: L1MuBMSEU.h:92
void load(const L1MuBMTrackSegPhi *startTS)
load data into the SEU
Definition: L1MuBMSEU.h:68
const std::bitset< 12 > & exTable() const
return Extrapolator table
Definition: L1MuBMSEU.h:71
std::vector< L1MuBMEUX * > m_EUXs
Definition: L1MuBMSEU.h:104
std::bitset< 12 > m_QStable
Definition: L1MuBMSEU.h:108
virtual void run()
run processor logic
virtual void reset()
reset SEU
Definition: L1MuBMSEU.cc:155
L1MuBMSEU(const L1MuBMSectorProcessor &sp, Extrapolation ext, unsigned int tsId)
constructor
Definition: L1MuBMSEU.cc:50
unsigned int tsId() const
return start track segment identifier (relative address)
Definition: L1MuBMSEU.h:83
Extrapolation
bool isOwnWheelSEU() const
is it a own wheel Single Extrapolation Unit
Definition: L1MuBMSEU.h:86
virtual ~L1MuBMSEU()
destructor
Definition: L1MuBMSEU.cc:69
bool isNextWheelSEU() const
is it a next wheel Single Extrapolation Unit
Definition: L1MuBMSEU.h:89
std::bitset< 12 > m_EXtable
Definition: L1MuBMSEU.h:107
L1MuBMERS * m_ERS
Definition: L1MuBMSEU.h:105
const L1MuBMTrackSegPhi * m_startTS
Definition: L1MuBMSEU.h:103
Definition: sp.h:21
const std::bitset< 12 > & qsTable() const
return Quality Sorter table
Definition: L1MuBMSEU.h:74
Extrapolation m_ext
Definition: L1MuBMSEU.h:100