CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuBMERS.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUBM_ERS_H
18 #define L1MUBM_ERS_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <utility>
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
34 class L1MuBMTrackSegPhi;
35 class L1MuBMSEU;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 class L1MuBMERS {
42 public:
44  L1MuBMERS(const L1MuBMSEU&);
45 
47  ~L1MuBMERS();
48 
50  void run();
51 
53  void reset();
54 
56  inline unsigned int quality(int id) const { return m_quality[id]; }
57 
59  inline unsigned short int address(int id) const { return m_address[id]; }
60 
62  std::pair<const L1MuBMTrackSegPhi*, const L1MuBMTrackSegPhi*> ts(int id) const;
63 
64 private:
65  const L1MuBMSEU& m_seu;
66 
67  unsigned short int m_quality[2]; //@@ 1 bit
68  unsigned short int m_address[2]; //@@ 4 bits
69 
72 };
73 
74 #endif
uint16_t *__restrict__ id
unsigned short int m_quality[2]
Definition: L1MuBMERS.h:67
const L1MuBMTrackSegPhi * m_target[2]
Definition: L1MuBMERS.h:71
unsigned int quality(int id) const
return extrapolation quality
Definition: L1MuBMERS.h:56
const L1MuBMSEU & m_seu
Definition: L1MuBMERS.h:65
void run()
run L1MuBMERS
Definition: L1MuBMERS.cc:61
unsigned short int address(int id) const
return extrapolation address; (address = 15 indicates negative ext. result)
Definition: L1MuBMERS.h:59
L1MuBMERS(const L1MuBMSEU &)
constructor
Definition: L1MuBMERS.cc:46
void reset()
reset ERS
Definition: L1MuBMERS.cc:96
const L1MuBMTrackSegPhi * m_start[2]
Definition: L1MuBMERS.h:70
~L1MuBMERS()
destructor
Definition: L1MuBMERS.cc:52
std::pair< const L1MuBMTrackSegPhi *, const L1MuBMTrackSegPhi * > ts(int id) const
return pointer to start and target track segment
Definition: L1MuBMERS.cc:108
unsigned short int m_address[2]
Definition: L1MuBMERS.h:68