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 // $Date: 2006/05/15 13:56:02 $
8 // $Revision: 1.1 $
9 //
10 // Author :
11 // N. Neumeister CERN EP
12 //
13 // Migrated to CMSSW:
14 // I. Mikulec
15 //
16 //--------------------------------------------------
17 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTMatcher_h
18 #define L1TriggerGlobalMuonTrigger_L1MuGMTMatcher_h
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <vector>
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
36 
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 
45  public:
46 
47  static const unsigned int MaxMatch = 4;
48 
50  L1MuGMTMatcher(const L1MuGlobalMuonTrigger& gmt, int id);
51 
53  virtual ~L1MuGMTMatcher();
54 
56  void run();
57 
59  void reset();
60 
62  void print();
63 
65  inline int id() const { return m_id; }
66 
68  const L1MuGMTMatrix<bool>& pairM() const { return pairMatrix; }
69 
71  bool pairM(int i,int j) const { return pairMatrix(i,j); }
72 
73  private:
74 
75  void load();
76 
77  void match();
78 
79  // int compareEtaPhi(float eta1, float phi1, float eta2, float phi2);
80  int lookup_mq(int i, int j);
81 
82  private:
83 
85  int m_id;
86 
87  std::vector<const L1MuRegionalCand*> first;
88  std::vector<const L1MuRegionalCand*> second;
89 
92 
93 };
94 
95 #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