CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PtAssignmentEngineAux2017.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_PtAssignmentEngineAux2017_h
2 #define L1TMuonEndCap_PtAssignmentEngineAux2017_h
3 
5 
7 public:
8  int getNLBdPhi(int dPhi, int bits = 7, int max = 512) const;
9 
10  int getNLBdPhiBin(int dPhi, int bits = 7, int max = 512) const;
11 
12  int getdPhiFromBin(int dPhiBin, int bits = 7, int max = 512) const;
13 
14  int getCLCT(int clct, int endcap, int dPhiSign, int bits = 3) const;
15 
16  int unpackCLCT(int clct, int endcap, int dPhiSign, int bits) const;
17 
18  int getdTheta(int dTheta, int bits = 3) const;
19 
20  int unpackdTheta(int dTheta, int bits) const;
21 
22  int getTheta(int theta, int ring2, int bits = 5) const;
23 
24  void unpackTheta(int& theta, int& st1_ring2, int bits) const;
25 
26  int unpackSt1Ring2(int theta, int bits) const;
27 
28  int get2bRPC(int clctA, int clctB, int clctC) const;
29 
30  void unpack2bRPC(int rpc_2b, int& rpcA, int& rpcB, int& rpcC) const;
31 
32  int get8bMode15(int theta, int st1_ring2, int endcap, int sPhiAB, int clctA, int clctB, int clctC, int clctD) const;
33 
34  void unpack8bMode15(int mode15_8b,
35  int& theta,
36  int& st1_ring2,
37  int endcap,
38  int sPhiAB,
39  int& clctA,
40  int& rpcA,
41  int& rpcB,
42  int& rpcC,
43  int& rpcD) const;
44 
45  // Need to re-check / verify this - AWB 17.03.17
46  // int getFRLUT(int sector, int station, int chamber) const;
47 
48  // ___________________________________________________________________________
49  // From here down, code was originally in PtLUTVarCalc.h
50 
51  int calcTrackTheta(const int th1,
52  const int th2,
53  const int th3,
54  const int th4,
55  const int ring1,
56  const int mode,
57  const bool BIT_COMP = false) const;
58 
59  void calcDeltaPhis(int& dPh12,
60  int& dPh13,
61  int& dPh14,
62  int& dPh23,
63  int& dPh24,
64  int& dPh34,
65  int& dPhSign,
66  int& dPhSum4,
67  int& dPhSum4A,
68  int& dPhSum3,
69  int& dPhSum3A,
70  int& outStPh,
71  const int ph1,
72  const int ph2,
73  const int ph3,
74  const int ph4,
75  const int mode,
76  const bool BIT_COMP = false) const;
77 
78  void calcDeltaThetas(int& dTh12,
79  int& dTh13,
80  int& dTh14,
81  int& dTh23,
82  int& dTh24,
83  int& dTh34,
84  const int th1,
85  const int th2,
86  const int th3,
87  const int th4,
88  const int mode,
89  const bool BIT_COMP = false) const;
90 
91  void calcBends(int& bend1,
92  int& bend2,
93  int& bend3,
94  int& bend4,
95  const int pat1,
96  const int pat2,
97  const int pat3,
98  const int pat4,
99  const int dPhSign,
100  const int endcap,
101  const int mode,
102  const bool BIT_COMP = false) const;
103 
104  void calcRPCs(int& RPC1,
105  int& RPC2,
106  int& RPC3,
107  int& RPC4,
108  const int mode,
109  const int st1_ring2,
110  const int theta,
111  const bool BIT_COMP = false) const;
112 
113  int calcBendFromPattern(const int pattern, const int endcap) const;
114 
115  void calcDeltaPhiSums(int& dPhSum4,
116  int& dPhSum4A,
117  int& dPhSum3,
118  int& dPhSum3A,
119  int& outStPh,
120  const int dPh12,
121  const int dPh13,
122  const int dPh14,
123  const int dPh23,
124  const int dPh24,
125  const int dPh34) const;
126 };
127 
128 #endif
int getTheta(int theta, int ring2, int bits=5) const
Geom::Theta< T > theta() const
void unpack8bMode15(int mode15_8b, int &theta, int &st1_ring2, int endcap, int sPhiAB, int &clctA, int &rpcA, int &rpcB, int &rpcC, int &rpcD) const
void calcDeltaPhiSums(int &dPhSum4, int &dPhSum4A, int &dPhSum3, int &dPhSum3A, int &outStPh, const int dPh12, const int dPh13, const int dPh14, const int dPh23, const int dPh24, const int dPh34) const
int get2bRPC(int clctA, int clctB, int clctC) const
void unpack2bRPC(int rpc_2b, int &rpcA, int &rpcB, int &rpcC) const
void calcBends(int &bend1, int &bend2, int &bend3, int &bend4, const int pat1, const int pat2, const int pat3, const int pat4, const int dPhSign, const int endcap, const int mode, const bool BIT_COMP=false) const
void calcDeltaThetas(int &dTh12, int &dTh13, int &dTh14, int &dTh23, int &dTh24, int &dTh34, const int th1, const int th2, const int th3, const int th4, const int mode, const bool BIT_COMP=false) const
int calcBendFromPattern(const int pattern, const int endcap) const
int calcTrackTheta(const int th1, const int th2, const int th3, const int th4, const int ring1, const int mode, const bool BIT_COMP=false) const
int getNLBdPhi(int dPhi, int bits=7, int max=512) const
int unpackdTheta(int dTheta, int bits) const
void calcDeltaPhis(int &dPh12, int &dPh13, int &dPh14, int &dPh23, int &dPh24, int &dPh34, int &dPhSign, int &dPhSum4, int &dPhSum4A, int &dPhSum3, int &dPhSum3A, int &outStPh, const int ph1, const int ph2, const int ph3, const int ph4, const int mode, const bool BIT_COMP=false) const
int getCLCT(int clct, int endcap, int dPhiSign, int bits=3) const
void unpackTheta(int &theta, int &st1_ring2, int bits) const
void calcRPCs(int &RPC1, int &RPC2, int &RPC3, int &RPC4, const int mode, const int st1_ring2, const int theta, const bool BIT_COMP=false) const
int getdPhiFromBin(int dPhiBin, int bits=7, int max=512) const
int getdTheta(int dTheta, int bits=3) const
int get8bMode15(int theta, int st1_ring2, int endcap, int sPhiAB, int clctA, int clctB, int clctC, int clctD) const
int unpackSt1Ring2(int theta, int bits) const
int unpackCLCT(int clct, int endcap, int dPhiSign, int bits) const
int getNLBdPhiBin(int dPhi, int bits=7, int max=512) const