Go to the documentation of this file. 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)
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_;
int get_CellMultiplicity()
CTPPSToFDetector(int ncellx, int ncelly, std::vector< double > &cellw, double cellh, double pitchx, double pitchy, double pos, int res)
std::vector< std::pair< double, double > > cellRow_
std::map< int, std::vector< double > > theToFInfo_t
bool get_CellCenter(int cell_id, double &x, double &y)
int getMultiplicityByCell(int cellid)
std::map< int, std::vector< int > > nADC_
int findCellId(double x, double y)
std::vector< std::pair< double, double > > cellColumn_
void AddHit(double x, double y, double tof)
std::vector< double > get_ToF(int cell)
virtual ~CTPPSToFDetector()
std::map< int, std::vector< double > > theToFInfo
int getADC(int cell, int hit)
std::vector< double > cellW_