test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuBMEUX.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUBM_EUX_H
18 #define L1MUBM_EUX_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <utility>
25 #include <map>
26 
27 //----------------------
28 // Base Class Headers --
29 //----------------------
30 
32 
33 //------------------------------------
34 // Collaborating Class Declarations --
35 //------------------------------------
36 
38 class L1MuBMTrackSegPhi;
40 class L1MuBMSEU;
41 class L1MuDTExtLut;
42 class L1MuDTTFParameters;
43 
44 // ---------------------
45 // -- Class Interface --
46 // ---------------------
47 
49 
50  public:
51 
53  L1MuBMEUX(const L1MuBMSectorProcessor& sp, const L1MuBMSEU& seu, int id );
54 
56  virtual ~L1MuBMEUX();
57 
59  bool operator==(const L1MuBMEUX&) const;
60 
62  virtual void run(const edm::EventSetup& c);
63 
65  virtual void reset();
66 
68  void load(const L1MuBMTrackSegPhi* start_ts, const L1MuBMTrackSegPhi* target_ts);
69 
71  std::pair<const L1MuBMTrackSegPhi*, const L1MuBMTrackSegPhi*> ts() const;
72 
74  class EUX_Comp : std::binary_function< L1MuBMEUX*, L1MuBMEUX*, bool> {
75  public :
76  EUX_Comp( const L1MuBMEUX* k = 0 ) : _not(k) {}
77  bool operator()( const L1MuBMEUX* first, const L1MuBMEUX* second ) const {
78  if ( !second->result() ) return false;
79  if ( _not != 0 && *first == *_not ) return true;
80  if ( _not != 0 && *second == *_not ) return false;
81  return ( first->quality() < second->quality() );
82  }
83  private:
84  const L1MuBMEUX* _not;
85  };
86 
88  inline int id() const { return m_id; }
89 
91  inline bool result() const { return m_result; }
92 
94  inline unsigned int quality() const { return m_quality; }
95 
97  inline unsigned short int address() const { return m_address; }
98 
99  private:
100 
102  int sec_mod(int) const;
103 
104  private:
105 
107  const L1MuBMSEU& m_seu; // reference to Single Extrapolation Unit
108  int m_id; // index of start TS
109 
110  bool m_result; //@@ 1 bit
111  unsigned short int m_quality; //@@ 1 bit
112  unsigned short int m_address; //@@ 4 bits
113 
114  const L1MuBMTrackSegPhi* m_start; // start track segment
115  const L1MuBMTrackSegPhi* m_target; // target track segment
116 
117  edm::ESHandle< L1MuDTExtLut > theExtLUTs; // extrapolation look-up tables
118  int const theExtFilter = 1; // extrapolation quality filter
119  unsigned short const nbit_phi = 12; // number of bits used for phi
120  unsigned short const nbit_phib = 10; // number of bits used for phib
121 
123 
124 };
125 
126 #endif
const L1MuBMSEU & m_seu
Definition: L1MuBMEUX.h:107
edm::ESHandle< L1MuDTExtLut > theExtLUTs
Definition: L1MuBMEUX.h:117
virtual void reset()
reset Extrapolator
Definition: L1MuBMEUX.cc:210
int m_id
Definition: L1MuBMEUX.h:108
std::pair< const L1MuBMTrackSegPhi *, const L1MuBMTrackSegPhi * > ts() const
return pointer to start and target track segment
Definition: L1MuBMEUX.cc:225
unsigned short int m_address
Definition: L1MuBMEUX.h:112
const L1MuBMTrackSegPhi * m_target
Definition: L1MuBMEUX.h:115
bool operator()(const L1MuBMEUX *first, const L1MuBMEUX *second) const
Definition: L1MuBMEUX.h:77
int sec_mod(int) const
output sector numbers in the range -6 to +5
Definition: L1MuBMEUX.cc:236
const L1MuBMTrackSegPhi * m_start
Definition: L1MuBMEUX.h:114
U second(std::pair< T, U > const &p)
int id() const
return Extrapolation identifier
Definition: L1MuBMEUX.h:88
bool operator==(const L1MuBMEUX &) const
equal operator
Definition: L1MuBMEUX.cc:75
virtual void run()
run processor logic
const L1MuBMSectorProcessor & m_sp
Definition: L1MuBMEUX.h:106
const L1MuBMEUX * _not
Definition: L1MuBMEUX.h:84
int const theExtFilter
Definition: L1MuBMEUX.h:118
bool result() const
return extrapolation result
Definition: L1MuBMEUX.h:91
bool m_result
Definition: L1MuBMEUX.h:110
unsigned short const nbit_phi
Definition: L1MuBMEUX.h:119
void load(const L1MuBMTrackSegPhi *start_ts, const L1MuBMTrackSegPhi *target_ts)
load data into EUX
Definition: L1MuBMEUX.cc:191
helper class for finding the best and second best extrapolation
Definition: L1MuBMEUX.h:74
EUX_Comp(const L1MuBMEUX *k=0)
Definition: L1MuBMEUX.h:76
unsigned short const nbit_phib
Definition: L1MuBMEUX.h:120
virtual ~L1MuBMEUX()
destructor
Definition: L1MuBMEUX.cc:65
unsigned int quality() const
return extrapolation quality
Definition: L1MuBMEUX.h:94
unsigned short int address() const
return extrapolation address (0-11) (address = 15 indicates negative ext. result) ...
Definition: L1MuBMEUX.h:97
unsigned short int m_quality
Definition: L1MuBMEUX.h:111
Definition: sp.h:21
edm::ESHandle< L1MuDTTFParameters > pars
Definition: L1MuBMEUX.h:122
L1MuBMEUX(const L1MuBMSectorProcessor &sp, const L1MuBMSEU &seu, int id)
constructor
Definition: L1MuBMEUX.cc:50