31 for (
int i = 0;
i < 2; ++
i)
32 for (
int j = 0;
j < 2; ++
j)
33 for (
int k = 0;
k < 40; ++
k)
34 for (
int l = 0;
l < 40; ++
l)
35 senCount_[
i][
j][
k][
l] = -1;
41 int iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
42 int senZ_[4288], senP_[4288], senX_[4288], senY_[4288];
45 ifstream
file(lookup_.fullPath().c_str());
51 for (
int i = 0;
i < nLines_; ++
i) {
52 file >> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
59 iz = (senZ_[
i] == 1) ? 0 : 1;
60 senCount_[iz][senP_[
i] - 1][senX_[
i] - 1][senY_[
i] - 1] =
i;
67 for (
int i = 0;
i < nLines_; ++
i) {
68 for (
int is = 0; is < 32; ++is) {
69 sprintf(hname,
"ADC Z %d P %d X %d Y %d Str %d", senZ_[
i], senP_[
i], senX_[
i], senY_[
i], is + 1);
70 meADC_[
i][is] = iBooker.
book1D(hname, hname, 1000, 899.5, 1899.5);
77 runNum_ =
e.id().run();
80 e.getByToken(digitoken_, digis);
96 iz = (
zside == 1) ? 0 : 1;
98 if (meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][
strip - 1]) {
100 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][
strip - 1]->Fill(dataframe.
sample(0).
adc());
101 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][
strip - 1]->Fill(dataframe.
sample(1).
adc());
102 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][
strip - 1]->Fill(dataframe.
sample(2).
adc());
103 }
else if (runtype_ == 3) {
104 meADC_[senCount_[iz][plane - 1][ix - 1][iy - 1]][
strip - 1]->Fill(dataframe.
sample(1).
adc());