7 rawEMET = std::vector<unsigned short>(56 * 72);
8 rawHDET = std::vector<unsigned short>(56 * 72);
9 rawEMFG = std::vector<unsigned short>(56 * 72);
10 rawHDFG = std::vector<unsigned short>(56 * 72);
11 rawHFET = std::vector<unsigned short>(8 * 18);
12 combEM = std::vector<unsigned short>(56 * 72);
13 combHD = std::vector<unsigned short>(56 * 72);
15 barrelData = std::vector<std::vector<std::vector<unsigned short>>>(
16 18, std::vector<std::vector<unsigned short>>(7, std::vector<unsigned short>(64)));
17 hfData = std::vector<std::vector<unsigned short>>(18, std::vector<unsigned short>(8));
23 std::vector<unsigned short> crate(16);
24 for (
int i = 0;
i < 9;
i++) {
25 for (
int j = 0;
j < 16;
j++) {
44 const std::vector<unsigned> &hdet,
45 const std::vector<bool> &emfg,
46 const std::vector<bool> &hdfg,
47 const std::vector<unsigned> &hfet) {
48 for (
int i = 0;
i < 4032;
i++) {
54 for (
int i = 0;
i < 144;
i++)
65 unsigned short newfg = fg << 8;
70 const std::vector<unsigned short> &fg) {
71 std::vector<unsigned short>
comb(56 * 72);
72 for (
int i = 0;
i < (
int)
et.size();
i++)
79 std::vector<int> cardTower(2, 0);
80 std::vector<int> returnVec(3, 0);
81 int modEta =
eta % 28;
106 crateNum = crateNum + 9;
109 returnVec.at(0) = crateNum;
110 for (
int i = 0;
i < 2;
i++) {
111 returnVec.at(
i + 1) = cardTower.at(
i);
119 std::vector<int> returnVec(2);
123 towernum = (3 -
eta) * 4 +
phi;
125 towernum =
eta * 4 +
phi + 12;
126 }
else if (
eta < 12) {
130 towernum = (7 -
eta) * 4 +
phi + 16;
132 towernum = (11 -
eta) * 4 +
phi;
136 towernum = (7 -
eta) * 4 + (
phi - 4) + 16;
138 towernum = (11 -
eta) * 4 + (
phi - 4);
140 }
else if (
eta < 20) {
144 towernum = (15 -
eta) * 4 +
phi + 16;
146 towernum = (19 -
eta) * 4 +
phi;
150 towernum = (15 -
eta) * 4 + (
phi - 4) + 16;
152 towernum = (19 -
eta) * 4 + (
phi - 4);
154 }
else if (
eta < 28) {
158 towernum = (23 -
eta) * 4 +
phi + 16;
160 towernum = (27 -
eta) * 4 +
phi;
164 towernum = (23 -
eta) * 4 + (
phi - 4) + 16;
166 towernum = (27 -
eta) * 4 + (
phi - 4);
170 returnVec.at(0) = cardnum;
171 returnVec.at(1) = towernum;
178 std::vector<int> returnVec(2);
185 towernum =
eta * 4 + (
phi - 4);
187 }
else if (
eta < 16) {
190 towernum = (
eta - 8) * 4 +
phi;
193 towernum = (
eta - 8) * 4 + (
phi - 4);
195 }
else if (
eta < 24) {
198 towernum = (
eta - 16) * 4 +
phi;
201 towernum = (
eta - 16) * 4 + (
phi - 4);
206 towernum = (27 -
eta) * 4 +
phi;
208 towernum = (27 -
eta) * 4 +
phi + 12;
211 returnVec.at(0) = cardnum;
212 returnVec.at(1) = towernum;