24 unsigned short int pattern = ((theadd >> 8) & 0xf);
25 unsigned short int strip = (theadd & 0xff);
35 edm::LogWarning(
"CSCSectorReceiverMiniLUT") <<
"+++ Value of strip, " <<
strip <<
", exceeds max allowed, "
38 if (
data.phi_local >= maxPhiL)
40 <<
"+++ Value of phi_local, " <<
data.phi_local <<
", exceeds max allowed, "
51 unsigned short sector,
53 unsigned short subsector,
56 if (endcap < 1 || endcap > 2)
58 <<
"+++ Value of endcap, " <<
endcap <<
", is out of bounds, [1, 2] +++\n";
59 if (sector < 1 || sector > 6)
61 <<
"+++ Value of sector, " << sector <<
", is out of bounds, [1, 6] +++\n";
62 if (station < 1 || station > 4)
64 <<
"+++ Value of station, " <<
station <<
", is out of bounds, [1, 4] +++\n";
68 unsigned short int tcscid = ((theadd >> 15) & 0xf);
69 unsigned short int lclPhi = ((theadd >> 6) & 0x3);
70 unsigned short int WG = ((theadd >> 8) & 0x7f);
71 unsigned short int bend = ((theadd)&0x3f);
76 unsigned short int cscid = (tcscid > 9) ? tcscid - 9 : tcscid;
78 unsigned short int lclPhip = 0;
79 if (lclPhi == 1 || lclPhi == 3)
100 if (
gangedME1a && (tcscid < 4) && (lclPhi == 3)) {
115 <<
"+++ Value of cscid, " << tcscid <<
", is out of bounds, [1, 9] -- or --"
121 data.global_eta = eta_temp;
135 unsigned short sector,
137 unsigned short subsector,
140 if (endcap < 1 || endcap > 2)
142 <<
"+++ Value of endcap, " <<
endcap <<
", is out of bounds, [1, 2] +++\n";
143 if (sector < 1 || sector > 6)
145 <<
"+++ Value of sector, " << sector <<
", is out of bounds, [1, 6] +++\n";
146 if (station < 1 || station > 4)
148 <<
"+++ Value of station, " <<
station <<
", is out of bounds, [1, 4] +++\n";
154 unsigned short int cscid = ((theadd >> 15) & 0xf);
155 unsigned short int lclPhi = (theadd & 0x3ff);
157 lclPhi = lclPhi / 0.625;
163 int strip = static_cast<int>(lclPhi / binPhiL);
164 if (
station == 1 && (cscid <= 3) &&
171 ? lclPhi = (
strip - 127 + 31) * (4 * binPhiL / 3)
179 if (
station == 1 && ((cscid <= 3) || (cscid >= 7))) {
189 if (
station == 1 && (cscid >= 10)) {
190 lclPhi =
strip * (4 * binPhiL / 3);
195 if ((cscid > 0) && (cscid <= 9)) {
196 if ((
station == 1) && (lclPhi < maxPhiL))
199 else if ((
station == 1) && (lclPhi >= maxPhiL))
208 <<
"+++ Value of cscid, " << cscid <<
", is out of bounds, [1, 9] +++\n";
210 if (
data.global_phi >= maxPhiG)
212 <<
"+++ Value of global_phi, " <<
data.global_phi <<
", exceeds max allowed, " << maxPhiG - 1 <<
" +++\n";
218 unsigned short endcap,
unsigned short sector,
unsigned short subsector,
unsigned theadd,
const bool gangedME1a) {
219 if (endcap < 1 || endcap > 2)
221 <<
"+++ Value of endcap, " <<
endcap <<
", is out of bounds, [1, 2] +++\n";
222 if (sector < 1 || sector > 6)
224 <<
"+++ Value of sector, " << sector <<
", is out of bounds, [1, 6] +++\n";
230 unsigned short int cscid = ((theadd >> 15) & 0xf);
231 unsigned short int lclPhi = (theadd & 0x3ff);
233 lclPhi = lclPhi / 0.625;
235 if ((cscid <= 3) || (cscid >= 7))
240 if ((cscid > 0) && (cscid <= 9)) {
241 if (lclPhi < maxPhiL)
249 <<
"+++ Value of cscid, " << cscid <<
", is out of bounds, [1, 9] +++\n";
251 if (
data.global_phi >= maxPhiG)
253 <<
"+++ Value of global_phi, " <<
data.global_phi <<
", exceeds max allowed, " << maxPhiG - 1 <<
" +++\n";
255 if (
data.global_phi >= maxPhiG)
257 <<
"+++ Value of global_phi, " <<
data.global_phi <<
", exceeds max allowed, " << maxPhiG - 1 <<
" +++\n";