CMS 3D CMS Logo

L1MuGMTLFMatchQualLUT.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
10 //
11 // Author :
12 // H. Sakulin HEPHY Vienna
13 //
14 // Migrated to CMSSW:
15 // I. Mikulec
16 //
17 //--------------------------------------------------
18 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLFMatchQualLUT_h
19 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFMatchQualLUT_h
20 
21 //---------------
22 // C++ Headers --
23 //---------------
24 
25 //----------------------
26 // Base Class Headers --
27 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
39 public:
41 
44  : L1MuGMTLUT(
45  "LFMatchQual", "DTRPC CSCRPC DTCSC CSCDT CSCbRPC DTfRPC", "delta_eta(4) delta_phi(3)", "mq(6)", 7, true) {
47  };
48 
50  ~L1MuGMTLFMatchQualLUT() override{};
51 
53  unsigned SpecificLookup_mq(int idx, unsigned delta_eta, unsigned delta_phi) const {
54  std::vector<unsigned> addr(2);
55  addr[0] = delta_eta;
56  addr[1] = delta_phi;
57  return Lookup(idx, addr)[0];
58  };
59 
61  unsigned SpecificLookup(int idx, unsigned delta_eta, unsigned delta_phi) const {
62  std::vector<unsigned> addr(2);
63  addr[0] = delta_eta;
64  addr[1] = delta_phi;
65  return LookupPacked(idx, addr);
66  };
67 
69 
70  unsigned LookupFunctionPacked(int idx, unsigned address) const override {
71  std::vector<unsigned> addr = u2vec(address, m_Inputs);
72  return TheLookupFunction(idx, addr[0], addr[1]);
73  };
74 
75 private:
77  void InitParameters();
78 
80  unsigned TheLookupFunction(int idx, unsigned delta_eta, unsigned delta_phi) const;
81 
83  float m_EtaWeights[6];
84  float m_PhiWeights[6];
86 };
87 #endif
HLT_2018_cff.delta_phi
delta_phi
Definition: HLT_2018_cff.py:10311
L1MuGMTLFMatchQualLUT
Definition: L1MuGMTLFMatchQualLUT.h:38
L1MuGMTLFMatchQualLUT::m_EtaWeights
float m_EtaWeights[6]
Private data members (LUT parameters);.
Definition: L1MuGMTLFMatchQualLUT.h:83
L1MuGMTLFMatchQualLUT::DTRPC
Definition: L1MuGMTLFMatchQualLUT.h:40
L1MuGMTLFMatchQualLUT::SpecificLookup
unsigned SpecificLookup(int idx, unsigned delta_eta, unsigned delta_phi) const
specific lookup function for entire output field
Definition: L1MuGMTLFMatchQualLUT.h:61
L1MuGMTLUT::m_Inputs
std::vector< port > m_Inputs
Definition: L1MuGMTLUT.h:214
charmTagsComputerCvsB_cfi.idx
idx
Definition: charmTagsComputerCvsB_cfi.py:108
L1MuGMTLFMatchQualLUT::CSCRPC
Definition: L1MuGMTLFMatchQualLUT.h:40
L1MuGMTLFMatchQualLUT::CSCbRPC
Definition: L1MuGMTLFMatchQualLUT.h:40
generateTowerEtThresholdLUT.addr
addr
Definition: generateTowerEtThresholdLUT.py:57
L1MuGMTLFMatchQualLUT::L1MuGMTLFMatchQualLUT
L1MuGMTLFMatchQualLUT()
constuctor using function-lookup
Definition: L1MuGMTLFMatchQualLUT.h:43
L1MuGMTLFMatchQualLUT::DTCSC
Definition: L1MuGMTLFMatchQualLUT.h:40
L1MuGMTLFMatchQualLUT::SpecificLookup_mq
unsigned SpecificLookup_mq(int idx, unsigned delta_eta, unsigned delta_phi) const
specific lookup function for mq
Definition: L1MuGMTLFMatchQualLUT.h:53
L1MuGMTLUT.h
L1MuGMTLFMatchQualLUT::TheLookupFunction
unsigned TheLookupFunction(int idx, unsigned delta_eta, unsigned delta_phi) const
The lookup function - here the functionality of the LUT is implemented.
Definition: L1MuGMTLFMatchQualLUT.cc:57
funct::true
true
Definition: Factorize.h:173
L1MuGMTLUT
Definition: L1MuGMTLUT.h:73
L1MuGMTLUT::LookupPacked
unsigned LookupPacked(int idx, unsigned) const
Definition: L1MuGMTLUT.h:272
L1MuGMTLFMatchQualLUT::~L1MuGMTLFMatchQualLUT
~L1MuGMTLFMatchQualLUT() override
destructor
Definition: L1MuGMTLFMatchQualLUT.h:50
L1MuGMTLFMatchQualLUT::LookupFunctionPacked
unsigned LookupFunctionPacked(int idx, unsigned address) const override
access to lookup function with packed input and output
Definition: L1MuGMTLFMatchQualLUT.h:70
L1MuGMTLFMatchQualLUT::CSCDT
Definition: L1MuGMTLFMatchQualLUT.h:40
L1MuGMTLFMatchQualLUT::InitParameters
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
Definition: L1MuGMTLFMatchQualLUT.cc:37
HLT_2018_cff.delta_eta
delta_eta
Definition: HLT_2018_cff.py:10310
L1MuGMTLFMatchQualLUT::DTfRPC
Definition: L1MuGMTLFMatchQualLUT.h:40
L1MuGMTLUT::u2vec
std::vector< unsigned > u2vec(unsigned value, const std::vector< port > &widths) const
generate composite address or value from compact unsigned
Definition: L1MuGMTLUT.h:251
L1MuGMTLUT::Lookup
std::vector< unsigned > Lookup(int idx, const std::vector< unsigned > &address) const
additional lookup function (std::vector -> vector)
Definition: L1MuGMTLUT.h:121
L1MuGMTLFMatchQualLUT::m_EtaPhiThresholds
float m_EtaPhiThresholds[6]
Definition: L1MuGMTLFMatchQualLUT.h:85
L1MuGMTLFMatchQualLUT::m_PhiWeights
float m_PhiWeights[6]
Definition: L1MuGMTLFMatchQualLUT.h:84