1 #ifndef CTPPSToFDetector_h
2 #define CTPPSToFDetector_h
12 std::vector<double>& cellw,
19 int ncellx,
int ncelly,
double cellw,
double cellh,
double pitchx,
double pitchy,
double pos,
int res);
30 std::map<int, std::vector<double> >::const_iterator it =
theToFInfo.begin();
31 std::advance(it, idx);
44 return std::vector<double>();
48 if (!
nADC_.count(cell))
50 if ((
int)
nADC_.at(cell).size() < hit)
52 return nADC_.at(cell).at(hit);
55 void AddHit(
double x,
double y,
double tof);
72 std::vector<std::pair<double, double> >
cellRow_;
80 std::map<int, std::vector<int> >
nADC_;
bool get_CellCenter(int cell_id, double &x, double &y)
std::vector< std::pair< double, double > > cellRow_
int findCellId(double x, double y)
int getMultiplicityByCell(int cellid)
virtual ~CTPPSToFDetector()
std::map< int, std::vector< int > > nADC_
int getADC(int cell, int hit)
void AddHit(double x, double y, double tof)
std::vector< std::pair< double, double > > cellColumn_
std::vector< double > get_ToF(int cell)
int get_CellMultiplicity()
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_
std::map< int, std::vector< double > > theToFInfo_t