CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTLFDisableHotLUT.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_L1MuGMTLFDisableHotLUT_h
21 #define L1TriggerGlobalMuonTrigger_L1MuGMTLFDisableHotLUT_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, CSC};
47 
49  L1MuGMTLFDisableHotLUT() : L1MuGMTLUT("LFDisableHot",
50  "DT CSC",
51  "eta(6) phi(8)",
52  "disable_hot(1)", 10, false) {
54  } ;
55 
58 
60  unsigned SpecificLookup_disable_hot (int idx, unsigned eta, unsigned phi) const {
61  std::vector<unsigned> addr(2);
62  addr[0] = eta;
63  addr[1] = phi;
64  return Lookup(idx, addr) [0];
65  };
66 
68  unsigned SpecificLookup (int idx, unsigned eta, unsigned phi) const {
69  std::vector<unsigned> addr(2);
70  addr[0] = eta;
71  addr[1] = phi;
72  return LookupPacked(idx, addr);
73  };
74 
75 
76 
78 
79  virtual unsigned LookupFunctionPacked (int idx, unsigned address) const {
80  std::vector<unsigned> addr = u2vec(address, m_Inputs);
81  return TheLookupFunction(idx ,addr[0] ,addr[1]);
82 
83  };
84 
85  private:
87  void InitParameters();
88 
90  unsigned TheLookupFunction (int idx, unsigned eta, unsigned phi) const;
91 
92 };
93 #endif
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
char * address
Definition: mlp_lapack.h:14
unsigned TheLookupFunction(int idx, unsigned eta, unsigned phi) const
The lookup function - here the functionality of the LUT is implemented.
T eta() const
std::vector< unsigned > Lookup(int idx, const std::vector< unsigned > &address) const
additional lookup function (std::vector -&gt; vector)
Definition: L1MuGMTLUT.h:117
L1MuGMTLFDisableHotLUT()
constuctor using function-lookup
unsigned SpecificLookup(int idx, unsigned eta, unsigned phi) const
specific lookup function for entire output field
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
std::vector< port > m_Inputs
Definition: L1MuGMTLUT.h:203
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
virtual unsigned LookupFunctionPacked(int idx, unsigned address) const
access to lookup function with packed input and output
std::vector< unsigned > u2vec(unsigned value, const std::vector< port > &widths) const
generate composite address or value from compact unsigned
Definition: L1MuGMTLUT.h:241
virtual ~L1MuGMTLFDisableHotLUT()
destructor
unsigned LookupPacked(int idx, unsigned) const
Definition: L1MuGMTLUT.h:262
unsigned SpecificLookup_disable_hot(int idx, unsigned eta, unsigned phi) const
specific lookup function for disable_hot
Definition: DDAxes.h:10