CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTLFPtMixLUT.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: L1MuGMTLFPtMixLUT
4 //
5 //
6 // $Date: 2010/03/19 14:33:35 $
7 // $Revision: 1.4 $
8 //
9 // Author :
10 // H. Sakulin HEPHY Vienna
11 //
12 // Migrated to CMSSW:
13 // I. Mikulec
14 //
15 //--------------------------------------------------
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 //-------------------------------
27 // Collaborating Class Headers --
28 //-------------------------------
29 
30 //-------------------
31 // InitParameters --
32 //-------------------
33 
35 }
36 
37 //------------------------
38 // The Lookup Function --
39 //------------------------
40 
41 unsigned L1MuGMTLFPtMixLUT::TheLookupFunction (int idx, unsigned pt_dtcsc, unsigned pt_rpc) const {
42  // idx is DTRPC, CSCRPC
43  // INPUTS: pt_dtcsc(5) pt_rpc(5)
44  // OUTPUTS: pt_mixed(5)
45 
46 
47  // choosing maximum pt
48 
49  return pt_dtcsc < pt_rpc ? pt_rpc : pt_dtcsc;
50 }
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
unsigned TheLookupFunction(int idx, unsigned pt_dtcsc, unsigned pt_rpc) const
The lookup function - here the functionality of the LUT is implemented.