1 #ifndef CTPPSToFDetector_h 2 #define CTPPSToFDetector_h 10 CTPPSToFDetector(
int ncellx,
int ncelly, std::vector<double>& cellw,
double cellh,
double pitchx,
double pitchy,
double pos,
int res);
11 CTPPSToFDetector(
int ncellx,
int ncelly,
double cellw,
double cellh,
double pitchx,
double pitchy,
double pos,
int res);
20 std::map<int,std::vector<double> >::const_iterator it=
theToFInfo.begin();
29 std::vector<double>
get_ToF(
int cell) {
if (!
theToFInfo.count(cell))
return std::vector<double>();
33 if (!
nADC_.count(cell))
return 0;
34 if ((
int)
nADC_.at(cell).size()<hit)
return 0;
35 return nADC_.at(cell).at(hit);
39 void AddHit(
double x,
double y,
double tof);
51 std::vector<std::pair<double,double> >
cellRow_;
59 std::map<int,std::vector<int> >
nADC_;
bool get_CellCenter(int cell_id, double &x, double &y)
int findCellId(double x, double y)
int getMultiplicityByCell(int cellid)
virtual ~CTPPSToFDetector()
std::map< int, std::vector< double > > theToFInfo_t
int getADC(int cell, int hit)
void AddHit(double x, double y, double tof)
std::vector< double > get_ToF(int cell)
int get_CellMultiplicity()
std::vector< std::pair< double, double > > cellRow_
CTPPSToFDetector(int ncellx, int ncelly, std::vector< double > &cellw, double cellh, double pitchx, double pitchy, double pos, int res)
std::vector< double > cellW_
std::map< int, std::vector< int > > nADC_
std::vector< std::pair< double, double > > cellColumn_
std::map< int, std::vector< double > > theToFInfo