17#ifndef ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_TPCFASTSPACECHARGECORRECTIONMAP_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_TPCFASTSPACECHARGECORRECTIONMAP_H
53 init(nSectors, nRows);
60 void init(int32_t nSectors, int32_t nRows)
64 int32_t
n = mNsectors * mNrows;
65 fDataPoints.resize(
n);
66 for (uint32_t
i = 0;
i < fDataPoints.size(); ++
i) {
67 fDataPoints[
i].clear();
74 double dx,
double dy,
double dz,
double weight)
76 int32_t ind = mNrows *
iSector + iRow;
83 int32_t ind = mNrows *
iSector + iRow;
84 return fDataPoints.at(ind);
97 std::vector<std::vector<CorrectionPoint>> fDataPoints;
99 ClassDefNV(TPCFastSpaceChargeCorrectionMap, 0);
const std::vector< CorrectionPoint > & getPoints(int32_t iSector, int32_t iRow) const
bool isInitialized() const
void init(int32_t nSectors, int32_t nRows)
(re-)init the map
void addCorrectionPoint(int32_t iSector, int32_t iRow, double y, double z, double dx, double dy, double dz, double weight)
Starts the construction procedure, reserves temporary memory.
TPCFastSpaceChargeCorrectionMap(int32_t nSectors, int32_t nRows)
_____________ Constructors / destructors __________________________
~TPCFastSpaceChargeCorrectionMap()=default
Destructor.
int32_t getNsectors() const
GLuint GLuint GLfloat weight
GLdouble GLdouble GLdouble z
The struct contains necessary info for TPC padrow.