CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
43  public:
44 
45  static const unsigned int MaxMatch = 4;
46 
48  L1MuGMTMatcher(const L1MuGlobalMuonTrigger& gmt, int id);
49 
51  virtual ~L1MuGMTMatcher();
52 
54  void run();
55 
57  void reset();
58 
60  void print();
61 
63  inline int id() const { return m_id; }
64 
66  const L1MuGMTMatrix<bool>& pairM() const { return pairMatrix; }
67 
69  bool pairM(int i,int j) const { return pairMatrix(i,j); }
70 
71  private:
72 
73  void load();
74 
75  void match();
76 
77  // int compareEtaPhi(float eta1, float phi1, float eta2, float phi2);
78  int lookup_mq(int i, int j);
79 
80  private:
81 
83  int m_id;
84 
85  std::vector<const L1MuRegionalCand*> first;
86  std::vector<const L1MuRegionalCand*> second;
87 
90 
91 };
92 
93 #endif
int i
Definition: DBlmapReader.cc:9
bool pairM(int i, int j) const
return pair matrix
const L1MuGlobalMuonTrigger & m_gmt
virtual ~L1MuGMTMatcher()
destructor
void run()
run Matcher
void print()
print matching results
std::vector< const L1MuRegionalCand * > second
int id() const
return identifier
int lookup_mq(int i, int j)
int j
Definition: DBlmapReader.cc:9
std::vector< const L1MuRegionalCand * > first
L1MuGMTMatrix< bool > pairMatrix
void reset()
clear Matcher
static const unsigned int MaxMatch
const L1MuGMTMatrix< bool > & pairM() const
return pair matrix
L1MuGMTMatcher(const L1MuGlobalMuonTrigger &gmt, int id)
constructor
L1MuGMTMatrix< int > matchQuality