CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTLFSortRankEtaPhiLUT.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: L1MuGMTLFSortRankEtaPhiLUT
4 //
5 //
6 //
7 // Author :
8 // H. Sakulin HEPHY Vienna
9 //
10 // Migrated to CMSSW:
11 // I. Mikulec
12 //
13 //--------------------------------------------------
14 
15 //-----------------------
16 // This Class's Header --
17 //-----------------------
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 //-------------------------------
25 // Collaborating Class Headers --
26 //-------------------------------
27 
28 //-------------------
29 // InitParameters --
30 //-------------------
31 
33 }
34 
35 //--------------------------------------------------------------------------------
36 // Sort Rank LUT, Eta-Phi part
37 //
38 // This LUT determines the dependency of the sort rank on Eta and Phi.
39 // It can be used to lower the rank of or to disable muons in certain
40 // hot detector regions
41 //
42 // Inputs: eta(6 bit) and phi(8 bit)
43 // Outputs: Rank contribution 2-bit
44 //
45 //
46 //
47 // PROPOSAL FOR PROGRAMMING
48 //
49 // 00 Reduce below all other: rank += 0
50 // 01 Reduce by half scale: rank += 64
51 // 10 Normal operation: rank += 128
52 // 11 Switch off: rank = 0
53 //
54 // Switched off muons (code 11 binary) will be disabled completely, also for the matchiing
55 // by an additional disable-signal.
56 //
57 //--------------------------------------------------------------------------------
58 
59 unsigned L1MuGMTLFSortRankEtaPhiLUT::TheLookupFunction (int idx, unsigned eta, unsigned phi) const {
60  // idx is DT, BRPC, CSC, FRPC
61  // INPUTS: eta(6) phi(8)
62  // OUTPUTS: rank_etaphi(2)
63 
64  // by default return code 10 (binary)
65  unsigned int rank_etaphi = 2;
66  return rank_etaphi;
67 }
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
Geom::Phi< T > phi() const
unsigned TheLookupFunction(int idx, unsigned eta, unsigned phi) const
The lookup function - here the functionality of the LUT is implemented.