6 int ncellx,
int ncelly, std::vector<double>& cellw,
double cellh,
double pitchx,
double pitchy,
double pos,
int res)
20 double x1 = 0.,
x2 = 0.;
36 int ncellx,
int ncelly,
double cellwq,
double cellh,
double pitchx,
double pitchy,
double pos,
int res)
69 std::vector<double>* tofs = &(
theToFInfo.find(cellid)->second);
70 int ntof = tofs->size();
73 for (;
i < ntof;
i++) {
74 if (fabs(tofs->at(
i) - tof) * oneOverRes < 3) {
75 tofs->at(
i) = (tofs->at(
i) + tof) / 2.;
82 nADC_[cellid].push_back(1);
85 auto it = std::find_if(
86 cellRow_.begin(),
cellRow_.end(), [
y](
const auto& cell) {
return y >= cell.first &&
y <= cell.second; });
100 return 100 * y_idx + x_idx;
106 unsigned int y_idx =
int(cell_id * 0.01);
107 unsigned int x_idx = cell_id - y_idx * 100;
bool get_CellCenter(int cell_id, double &x, double &y)
std::vector< std::pair< double, double > > cellRow_
int findCellId(double x, double y)
std::map< int, std::vector< int > > nADC_
void AddHit(double x, double y, double tof)
std::vector< std::pair< double, double > > cellColumn_
CTPPSToFDetector(int ncellx, int ncelly, std::vector< double > &cellw, double cellh, double pitchx, double pitchy, double pos, int res)
std::map< int, std::vector< double > > theToFInfo
std::vector< double > cellW_