Skip to content

Commit dfada64

Browse files
committed
GPU: Simplify application of gain correction
1 parent 8bb935c commit dfada64

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

GPU/GPUTracking/Base/GPUConstantMem.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,6 @@ GPUdi() void GPUProcessor::raiseError(unsigned int code, unsigned int param1, un
135135
GetConstantMem()->errorCodes.raiseError(code, param1, param2, param3);
136136
}
137137

138-
#if defined(GPUCA_NOCOMPAT_ALLCINT) && (!defined(GPUCA_GPULIBRARY) || !defined(GPUCA_ALIROOT_LIB)) && defined(HAVE_O2HEADERS)
139-
GPUd() float GPUTPCClusterFinder::getGainCorrection(tpccf::Row row, tpccf::Pad pad) const
140-
{
141-
return GetConstantMem()->calibObjects.tpcPadGain->getGainCorrection(mISlice, row, pad);
142-
}
143-
#endif
144-
145138
} // namespace gpu
146139
} // namespace GPUCA_NAMESPACE
147140

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFDecodeZS.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ GPUdii() void GPUTPCCFDecodeZS::decode(GPUTPCClusterFinder& clusterer, GPUShared
170170
positions[nDigitsTmp++] = pos;
171171
if (inFragment) {
172172
float q = float(byte & mask) * decodeBitsFactor;
173-
q *= clusterer.getGainCorrection(row, pad);
173+
q *= clusterer.GetConstantMem()->calibObjects.tpcPadGain->getGainCorrection(slice, row, pad);
174174
chargeMap[pos] = PackedCharge(q);
175175
}
176176
pad++;

GPU/GPUTracking/TPCClusterFinder/GPUTPCClusterFinder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class GPUTPCClusterFinder : public GPUProcessor
138138
short mZSOffsetId = -1;
139139
short mOutputId = -1;
140140

141-
GPUdi() float getGainCorrection(tpccf::Row, tpccf::Pad) const;
142141
GPUdi() const GPUTPCGeometry* getGeometry() const;
143142

144143
#ifndef GPUCA_GPUCODE

0 commit comments

Comments
 (0)