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
mps_fire.i
i
Definition: mps_fire.py:428
L1MuGMTMatcher::pairMatrix
L1MuGMTMatrix< bool > pairMatrix
Definition: L1MuGMTMatcher.h:85
L1MuGMTMatcher::MaxMatch
static const unsigned int MaxMatch
Definition: L1MuGMTMatcher.h:43
L1MuGMTMatcher::match
void match()
Definition: L1MuGMTMatcher.cc:185
L1MuGMTMatcher::L1MuGMTMatcher
L1MuGMTMatcher(const L1MuGlobalMuonTrigger &gmt, int id)
constructor
Definition: L1MuGMTMatcher.cc:60
L1MuGMTMatcher::~L1MuGMTMatcher
virtual ~L1MuGMTMatcher()
destructor
Definition: L1MuGMTMatcher.cc:74
L1MuGMTMatcher::matchQuality
L1MuGMTMatrix< int > matchQuality
Definition: L1MuGMTMatcher.h:84
L1MuGMTMatcher::second
std::vector< const L1MuRegionalCand * > second
Definition: L1MuGMTMatcher.h:82
L1MuGMTMatcher::m_gmt
const L1MuGlobalMuonTrigger & m_gmt
Definition: L1MuGMTMatcher.h:78
L1MuGMTMatcher::pairM
const L1MuGMTMatrix< bool > & pairM() const
return pair matrix
Definition: L1MuGMTMatcher.h:64
L1MuRegionalCand.h
L1MuGMTMatcher
Definition: L1MuGMTMatcher.h:41
L1MuGMTMatcher::load
void load()
Definition: L1MuGMTMatcher.cc:120
L1MuGMTMatrix.h
L1MuGlobalMuonTrigger
Definition: L1MuGlobalMuonTrigger.h:64
L1MuGMTMatcher::first
std::vector< const L1MuRegionalCand * > first
Definition: L1MuGMTMatcher.h:81
L1MuGMTMatcher::pairM
bool pairM(int i, int j) const
return pair matrix
Definition: L1MuGMTMatcher.h:67
L1MuGMTMatcher::id
int id() const
return identifier
Definition: L1MuGMTMatcher.h:61
L1MuGMTMatcher::run
void run()
run Matcher
Definition: L1MuGMTMatcher.cc:83
L1MuGMTMatcher::print
void print()
print matching results
Definition: L1MuGMTMatcher.cc:104
L1MuGMTMatcher::reset
void reset()
clear Matcher
Definition: L1MuGMTMatcher.cc:91
L1MuGMTMatcher::lookup_mq
int lookup_mq(int i, int j)
Definition: L1MuGMTMatcher.cc:251
L1MuGMTMatcher::m_id
int m_id
Definition: L1MuGMTMatcher.h:79
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1MuGMTMatrix< bool >