23 constexpr
int cellsInTheta = 58;
24 constexpr
int cellsPerLayer[] = {0, 50, 60, 72, 96};
25 constexpr
int cellsInMB1 = (cellsPerLayer[1] * 8) + (cellsInTheta * 4);
26 constexpr
int cellsInMB2 = (cellsPerLayer[2] * 8) + (cellsInTheta * 4);
27 constexpr
int cellsInMB3 = (cellsPerLayer[3] * 8) + (cellsInTheta * 4);
28 constexpr
int cellsInMB4 = cellsPerLayer[4] * 8;
30 constexpr
int offsetChamber[] = {0, 0, cellsInMB1, cellsInMB1 + cellsInMB2, cellsInMB1 + cellsInMB2 + cellsInMB3};
31 constexpr
int cellsPerSector = cellsInMB1 + cellsInMB2 + cellsInMB3 + cellsInMB4;
32 constexpr
int cellsIn13Sectors = (cellsPerSector * 12) + cellsInMB4;
33 constexpr
int cellsPerWheel = cellsIn13Sectors + cellsInMB4;
58 seqWireNum += (
wheel - 1) * cellsPerWheel;
65 seqWireNum += cellsIn13Sectors;
67 seqWireNum += (sector - 1) * cellsPerSector;
72 seqWireNum += offsetChamber[
station];
78 if (superlayer != 2) {
79 if (cell > cellsPerLayer[
station])
87 if (cell > cellsInTheta)
89 seqWireNum += (8 * cellsPerLayer[
station]) + ((
layer - 1) * cellsInTheta);
92 return seqWireNum + cell;