CMS 3D CMS Logo

L1MuGMTMatcher.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
6 //
7 //
8 // Author :
9 // N. Neumeister CERN EP
10 //
11 // Migrated to CMSSW:
12 // I. Mikulec
13 //
14 //--------------------------------------------------
15 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTMatcher_h
16 #define L1TriggerGlobalMuonTrigger_L1MuGMTMatcher_h
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
22 #include <vector>
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
27 
28 //------------------------------------
29 // Collaborating Class Declarations --
30 //------------------------------------
31 
34 
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 public:
43  static const unsigned int MaxMatch = 4;
44 
46  L1MuGMTMatcher(const L1MuGlobalMuonTrigger& gmt, int id);
47 
49  virtual ~L1MuGMTMatcher();
50 
52  void run();
53 
55  void reset();
56 
58  void print();
59 
61  inline int id() const { return m_id; }
62 
64  const L1MuGMTMatrix<bool>& pairM() const { return pairMatrix; }
65 
67  bool pairM(int i, int j) const { return pairMatrix(i, j); }
68 
69 private:
70  void load();
71 
72  void match();
73 
74  // int compareEtaPhi(float eta1, float phi1, float eta2, float phi2);
75  int lookup_mq(int i, int j);
76 
77 private:
79  int m_id;
80 
81  std::vector<const L1MuRegionalCand*> first;
82  std::vector<const L1MuRegionalCand*> second;
83 
86 };
87 
88 #endif
const L1MuGlobalMuonTrigger & m_gmt
virtual ~L1MuGMTMatcher()
destructor
bool pairM(int i, int j) const
return pair matrix
int id() const
return identifier
void run()
run Matcher
void print()
print matching results
std::vector< const L1MuRegionalCand * > second
int lookup_mq(int i, int j)
std::vector< const L1MuRegionalCand * > first
const L1MuGMTMatrix< bool > & pairM() const
return pair matrix
L1MuGMTMatrix< bool > pairMatrix
void reset()
clear Matcher
static const unsigned int MaxMatch
L1MuGMTMatcher(const L1MuGlobalMuonTrigger &gmt, int id)
constructor
L1MuGMTMatrix< int > matchQuality