5 int ncellx,
int ncelly, std::vector<double>& cellw,
double cellh,
double pitchx,
double pitchy,
double pos,
int res)
19 double x1 = 0.,
x2 = 0.;
35 int ncellx,
int ncelly,
double cellwq,
double cellh,
double pitchx,
double pitchy,
double pos,
int res)
68 std::vector<double>* tofs = &(
theToFInfo.find(cellid)->second);
69 int ntof = tofs->size();
72 for (;
i < ntof;
i++) {
73 if (fabs(tofs->at(
i) - tof) * oneOverRes < 3) {
74 tofs->at(
i) = (tofs->at(
i) + tof) / 2.;
81 nADC_[cellid].push_back(1);
87 unsigned int start_idx = 0;
88 unsigned int end_idx =
cellRow_.size();
98 for (
i = start_idx;
i < end_idx;
i++) {
104 x_idx =
i + 1 - start_idx;
105 return 100 * y_idx + x_idx;
111 unsigned int y_idx =
int(cell_id * 0.01);
112 unsigned int x_idx = cell_id - y_idx * 100;