#include <CTPPSToFDetector.h>
|
void | AddHit (double x, double y, double tof) |
|
void | clear () |
|
| CTPPSToFDetector (int ncellx, int ncelly, std::vector< double > &cellw, double cellh, double pitchx, double pitchy, double pos, int res) |
|
| CTPPSToFDetector (int ncellx, int ncelly, double cellw, double cellh, double pitchx, double pitchy, double pos, int res) |
|
int | findCellId (double x, double y) |
|
bool | get_CellCenter (int cell_id, double &x, double &y) |
|
int | get_CellId (int idx) |
|
int | get_CellMultiplicity () |
|
int | get_nHits_ () |
|
std::vector< double > | get_ToF (int cell) |
|
int | getADC (int cell, int hit) |
|
double | getHeight () |
|
int | getMultiplicityByCell (int cellid) |
|
double | getPosition () |
|
double | getWidth () |
|
virtual | ~CTPPSToFDetector () |
|
Definition at line 8 of file CTPPSToFDetector.h.
◆ theToFInfo_t
◆ CTPPSToFDetector() [1/2]
CTPPSToFDetector::CTPPSToFDetector |
( |
int |
ncellx, |
|
|
int |
ncelly, |
|
|
std::vector< double > & |
cellw, |
|
|
double |
cellh, |
|
|
double |
pitchx, |
|
|
double |
pitchy, |
|
|
double |
pos, |
|
|
int |
res |
|
) |
| |
Definition at line 4 of file CTPPSToFDetector.cc.
References cellColumn_, cellH_, cellRow_, cellW_, detH_, detPosition_, detW_, mps_fire::i, nCellX_, nCellY_, pitchX_, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
19 double x1 = 0.,
x2 = 0.;
std::vector< std::pair< double, double > > cellRow_
std::vector< std::pair< double, double > > cellColumn_
std::vector< double > cellW_
◆ CTPPSToFDetector() [2/2]
CTPPSToFDetector::CTPPSToFDetector |
( |
int |
ncellx, |
|
|
int |
ncelly, |
|
|
double |
cellw, |
|
|
double |
cellh, |
|
|
double |
pitchx, |
|
|
double |
pitchy, |
|
|
double |
pos, |
|
|
int |
res |
|
) |
| |
Definition at line 34 of file CTPPSToFDetector.cc.
References cellColumn_, cellH_, cellRow_, cellWq_, detH_, detPosition_, detW_, mps_fire::i, nCellX_, nCellY_, pitchX_, pitchY_, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
std::vector< std::pair< double, double > > cellRow_
std::vector< std::pair< double, double > > cellColumn_
◆ ~CTPPSToFDetector()
virtual CTPPSToFDetector::~CTPPSToFDetector |
( |
| ) |
|
|
inlinevirtual |
◆ AddHit()
void CTPPSToFDetector::AddHit |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
tof |
|
) |
| |
Definition at line 62 of file CTPPSToFDetector.cc.
References findCellId(), fToFResolution_, mps_fire::i, nADC_, nHits_, theToFInfo, x, and y.
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);
int findCellId(double x, double y)
std::map< int, std::vector< int > > nADC_
std::map< int, std::vector< double > > theToFInfo
◆ clear()
void CTPPSToFDetector::clear |
( |
void |
| ) |
|
|
inline |
◆ findCellId()
int CTPPSToFDetector::findCellId |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
◆ get_CellCenter()
bool CTPPSToFDetector::get_CellCenter |
( |
int |
cell_id, |
|
|
double & |
x, |
|
|
double & |
y |
|
) |
| |
◆ get_CellId()
int CTPPSToFDetector::get_CellId |
( |
int |
idx | ) |
|
|
inline |
◆ get_CellMultiplicity()
int CTPPSToFDetector::get_CellMultiplicity |
( |
| ) |
|
|
inline |
◆ get_nHits_()
int CTPPSToFDetector::get_nHits_ |
( |
| ) |
|
|
inline |
◆ get_ToF()
std::vector<double> CTPPSToFDetector::get_ToF |
( |
int |
cell | ) |
|
|
inline |
Definition at line 42 of file CTPPSToFDetector.h.
References theToFInfo.
44 return std::vector<double>();
std::map< int, std::vector< double > > theToFInfo
◆ getADC()
int CTPPSToFDetector::getADC |
( |
int |
cell, |
|
|
int |
hit |
|
) |
| |
|
inline |
◆ getHeight()
double CTPPSToFDetector::getHeight |
( |
| ) |
|
|
inline |
◆ getMultiplicityByCell()
int CTPPSToFDetector::getMultiplicityByCell |
( |
int |
cellid | ) |
|
|
inline |
◆ getPosition()
double CTPPSToFDetector::getPosition |
( |
| ) |
|
|
inline |
◆ getWidth()
double CTPPSToFDetector::getWidth |
( |
| ) |
|
|
inline |
◆ cellColumn_
std::vector<std::pair<double, double> > CTPPSToFDetector::cellColumn_ |
|
private |
◆ cellH_
double CTPPSToFDetector::cellH_ |
|
private |
◆ cellRow_
std::vector<std::pair<double, double> > CTPPSToFDetector::cellRow_ |
|
private |
◆ cellW_
std::vector<double> CTPPSToFDetector::cellW_ |
|
private |
◆ cellWq_
double CTPPSToFDetector::cellWq_ |
|
private |
◆ detH_
double CTPPSToFDetector::detH_ |
|
private |
◆ detId_
int CTPPSToFDetector::detId_ |
|
private |
◆ detPosition_
double CTPPSToFDetector::detPosition_ |
|
private |
◆ detW_
double CTPPSToFDetector::detW_ |
|
private |
◆ fToFResolution_
int CTPPSToFDetector::fToFResolution_ |
|
private |
◆ nADC_
std::map<int, std::vector<int> > CTPPSToFDetector::nADC_ |
|
private |
◆ nCellX_
int CTPPSToFDetector::nCellX_ |
|
private |
◆ nCellY_
int CTPPSToFDetector::nCellY_ |
|
private |
◆ nHits_
int CTPPSToFDetector::nHits_ |
|
private |
◆ pitchX_
double CTPPSToFDetector::pitchX_ |
|
private |
◆ pitchY_
double CTPPSToFDetector::pitchY_ |
|
private |
◆ theToFInfo
std::map<int, std::vector<double> > CTPPSToFDetector::theToFInfo |
|
private |