CMS 3D CMS Logo

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
PtAssignmentEngineAux2017::calcDeltaThetas
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
Definition: PtAssignmentEngineAux2017.cc:863
PtAssignmentEngineAux2017::calcTrackTheta
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
Definition: PtAssignmentEngineAux2017.cc:725
PtAssignmentEngineAux2017::getNLBdPhiBin
int getNLBdPhiBin(int dPhi, int bits=7, int max=512) const
Definition: PtAssignmentEngineAux2017.cc:72
PtAssignmentEngineAux2017::calcBends
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
Definition: PtAssignmentEngineAux2017.cc:895
PtAssignmentEngineAux2017::unpackSt1Ring2
int unpackSt1Ring2(int theta, int bits) const
Definition: PtAssignmentEngineAux2017.cc:473
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
PtAssignmentEngineAux2017::calcDeltaPhis
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
Definition: PtAssignmentEngineAux2017.cc:751
PtAssignmentEngineAux2017
Definition: PtAssignmentEngineAux2017.h:6
PtAssignmentEngineAux2017::getdPhiFromBin
int getdPhiFromBin(int dPhiBin, int bits=7, int max=512) const
Definition: PtAssignmentEngineAux2017.cc:115
PtAssignmentEngineAux2017::calcRPCs
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
Definition: PtAssignmentEngineAux2017.cc:929
PtAssignmentEngineAux2017::getCLCT
int getCLCT(int clct, int endcap, int dPhiSign, int bits=3) const
Definition: PtAssignmentEngineAux2017.cc:139
PtAssignmentEngineAux
Definition: PtAssignmentEngineAux.h:13
PtAssignmentEngineAux2017::unpackdTheta
int unpackdTheta(int dTheta, int bits) const
Definition: PtAssignmentEngineAux2017.cc:354
HLT_2018_cff.dPhi
dPhi
Definition: HLT_2018_cff.py:12290
PtAssignmentEngineAux2017::unpack8bMode15
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
Definition: PtAssignmentEngineAux2017.cc:586
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
PtAssignmentEngineAux2017::calcBendFromPattern
int calcBendFromPattern(const int pattern, const int endcap) const
Definition: PtAssignmentEngineAux2017.cc:999
PtAssignmentEngineAux2017::get2bRPC
int get2bRPC(int clctA, int clctB, int clctC) const
Definition: PtAssignmentEngineAux2017.cc:492
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
PtAssignmentEngineAux.h
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition: topSingleLeptonDQM_PU_cfi.py:39
PtAssignmentEngineAux2017::unpackTheta
void unpackTheta(int &theta, int &st1_ring2, int bits) const
Definition: PtAssignmentEngineAux2017.cc:446
PtAssignmentEngineAux2017::unpackCLCT
int unpackCLCT(int clct, int endcap, int dPhiSign, int bits) const
Definition: PtAssignmentEngineAux2017.cc:247
PtAssignmentEngineAux2017::unpack2bRPC
void unpack2bRPC(int rpc_2b, int &rpcA, int &rpcB, int &rpcC) const
Definition: PtAssignmentEngineAux2017.cc:508
bits
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Definition: EventSelector-behavior.doc:35
PtAssignmentEngineAux2017::calcDeltaPhiSums
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
Definition: PtAssignmentEngineAux2017.cc:1019
PtAssignmentEngineAux2017::getNLBdPhi
int getNLBdPhi(int dPhi, int bits=7, int max=512) const
Definition: PtAssignmentEngineAux2017.cc:26
PtAssignmentEngineAux2017::getTheta
int getTheta(int theta, int ring2, int bits=5) const
Definition: PtAssignmentEngineAux2017.cc:411
photonValidator_cfi.dPhiBin
dPhiBin
Definition: photonValidator_cfi.py:78
PtAssignmentEngineAux2017::get8bMode15
int get8bMode15(int theta, int st1_ring2, int endcap, int sPhiAB, int clctA, int clctB, int clctC, int clctD) const
Definition: PtAssignmentEngineAux2017.cc:524
PtAssignmentEngineAux2017::getdTheta
int getdTheta(int dTheta, int bits=3) const
Definition: PtAssignmentEngineAux2017.cc:313