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>>(
17 7, std::vector<unsigned short>(64)));
18 hfData = std::vector<std::vector<unsigned short>>(
19 18, std::vector<unsigned short>(8));
27 std::vector<unsigned short> crate(16);
28 for (
int i = 0;
i < 9;
i++) {
29 for (
int j = 0; j < 16; j++) {
30 crate.at(j) =
rawHFET.at(16 *
i + j);
37 std::vector<int> indices;
41 (
barrelData.at(indices.at(0))).at(indices.at(1)).at(indices.at(2)) =
43 (
barrelData.at(indices.at(0))).at(indices.at(1)).at(indices.at(2) + 32) =
50 const std::vector<unsigned> &hdet,
51 const std::vector<bool> &emfg,
52 const std::vector<bool> &hdfg,
53 const std::vector<unsigned> &hfet) {
54 for (
int i = 0;
i < 4032;
i++) {
60 for (
int i = 0;
i < 144;
i++)
71 unsigned short newfg = fg << 8;
75 vector<unsigned short>
77 const std::vector<unsigned short> &fg) {
78 std::vector<unsigned short> comb(56 * 72);
79 for (
int i = 0;
i < (
int)et.size();
i++)
86 std::vector<int> cardTower(2, 0);
87 std::vector<int> returnVec(3, 0);
88 int modEta = eta % 28;
113 crateNum = crateNum + 9;
116 returnVec.at(0) = crateNum;
117 for (
int i = 0;
i < 2;
i++) {
118 returnVec.at(
i + 1) = cardTower.at(
i);
126 std::vector<int> returnVec(2);
130 towernum = (3 -
eta) * 4 + phi;
132 towernum = eta * 4 + phi + 12;
133 }
else if (eta < 12) {
137 towernum = (7 -
eta) * 4 + phi + 16;
139 towernum = (11 -
eta) * 4 + phi;
143 towernum = (7 -
eta) * 4 + (phi - 4) + 16;
145 towernum = (11 -
eta) * 4 + (phi - 4);
147 }
else if (eta < 20) {
151 towernum = (15 -
eta) * 4 + phi + 16;
153 towernum = (19 -
eta) * 4 + phi;
157 towernum = (15 -
eta) * 4 + (phi - 4) + 16;
159 towernum = (19 -
eta) * 4 + (phi - 4);
161 }
else if (eta < 28) {
165 towernum = (23 -
eta) * 4 + phi + 16;
167 towernum = (27 -
eta) * 4 + phi;
171 towernum = (23 -
eta) * 4 + (phi - 4) + 16;
173 towernum = (27 -
eta) * 4 + (phi - 4);
177 returnVec.at(0) = cardnum;
178 returnVec.at(1) = towernum;
185 std::vector<int> returnVec(2);
189 towernum = eta * 4 +
phi;
192 towernum = eta * 4 + (phi - 4);
194 }
else if (eta < 16) {
197 towernum = (eta - 8) * 4 + phi;
200 towernum = (eta - 8) * 4 + (phi - 4);
202 }
else if (eta < 24) {
205 towernum = (eta - 16) * 4 + phi;
208 towernum = (eta - 16) * 4 + (phi - 4);
213 towernum = (27 -
eta) * 4 + phi;
215 towernum = (27 -
eta) * 4 + phi + 12;
218 returnVec.at(0) = cardnum;
219 returnVec.at(1) = towernum;
std::vector< std::vector< std::vector< unsigned short > > > barrelData
std::vector< std::vector< unsigned short > > giveHF()
std::vector< unsigned short > combHD
std::vector< int > highEtaMap(int eta, int phi)
unsigned short combine(unsigned short et, unsigned short fg)
std::vector< unsigned short > rawHDFG
std::vector< std::vector< unsigned short > > hfData
std::vector< int > orcamap(int eta, int phi)
std::vector< unsigned short > combEM
et
define resolution functions of each parameter
std::vector< int > lowEtaMap(int eta, int phi)
std::vector< unsigned short > rawEMFG
std::vector< unsigned short > combVec(const std::vector< unsigned short > &et, const std::vector< unsigned short > &fg)
std::vector< unsigned short > rawHFET
std::vector< unsigned short > rawEMET
std::vector< unsigned short > rawHDET
std::vector< std::vector< std::vector< unsigned short > > > giveBarrel()
void readData(const std::vector< unsigned > &emet, const std::vector< unsigned > &hdet, const std::vector< bool > &emfg, const std::vector< bool > &hdfg, const std::vector< unsigned > &hfet)