CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTLFEtaConvLUT.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
10 // $Date: 2007/04/02 15:45:38 $
11 // $Revision: 1.3 $
12 //
13 // Author :
14 // H. Sakulin HEPHY Vienna
15 //
16 // Migrated to CMSSW:
17 // I. Mikulec
18 //
19 //--------------------------------------------------
20 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLFEtaConvLUT_h
21 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFEtaConvLUT_h
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
32 
33 //------------------------------------
34 // Collaborating Class Declarations --
35 //------------------------------------
36 
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
42 
44 
45  public:
46  enum {DT, bRPC, CSC, fRPC};
47 
49  L1MuGMTLFEtaConvLUT() : L1MuGMTLUT("LFEtaConv",
50  "DT bRPC CSC fRPC",
51  "eta_regional(6)",
52  "eta_gmt(6)", 6, true) {
54  } ;
55 
57  virtual ~L1MuGMTLFEtaConvLUT() {};
58 
60  unsigned SpecificLookup_eta_gmt (int idx, unsigned eta_regional) const {
61  std::vector<unsigned> addr(1);
62  addr[0] = eta_regional;
63  return Lookup(idx, addr) [0];
64  };
65 
67  unsigned SpecificLookup (int idx, unsigned eta_regional) const {
68  std::vector<unsigned> addr(1);
69  addr[0] = eta_regional;
70  return LookupPacked(idx, addr);
71  };
72 
73 
74 
76 
77  virtual unsigned LookupFunctionPacked (int idx, unsigned address) const {
78  std::vector<unsigned> addr = u2vec(address, m_Inputs);
79  return TheLookupFunction(idx ,addr[0]);
80 
81  };
82 
83  private:
85  void InitParameters();
86 
88  unsigned TheLookupFunction (int idx, unsigned eta_regional) const;
89 
90 };
91 #endif
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
char * address
Definition: mlp_lapack.h:14
virtual unsigned LookupFunctionPacked(int idx, unsigned address) const
access to lookup function with packed input and output
unsigned SpecificLookup_eta_gmt(int idx, unsigned eta_regional) const
specific lookup function for eta_gmt
std::vector< unsigned > Lookup(int idx, const std::vector< unsigned > &address) const
additional lookup function (std::vector -&gt; vector)
Definition: L1MuGMTLUT.h:117
L1MuGMTLFEtaConvLUT()
constuctor using function-lookup
std::vector< port > m_Inputs
Definition: L1MuGMTLUT.h:203
unsigned SpecificLookup(int idx, unsigned eta_regional) const
specific lookup function for entire output field
unsigned TheLookupFunction(int idx, unsigned eta_regional) const
The lookup function - here the functionality of the LUT is implemented.
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
std::vector< unsigned > u2vec(unsigned value, const std::vector< port > &widths) const
generate composite address or value from compact unsigned
Definition: L1MuGMTLUT.h:241
unsigned LookupPacked(int idx, unsigned) const
Definition: L1MuGMTLUT.h:262
virtual ~L1MuGMTLFEtaConvLUT()
destructor