Skip to content

Commit 8e374d3

Browse files
authored
Update TPCPadGainCalib.cxx
1 parent 7a42fe8 commit 8e374d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/DataTypes/TPCPadGainCalib.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ TPCPadGainCalib::TPCPadGainCalib(const o2::tpc::CalDet<float>& gainMap, const fl
4747
void TPCPadGainCalib::setFromMap(const o2::tpc::CalDet<float>& gainMap, const bool inv)
4848
{
4949
for (int32_t sector = 0; sector < o2::tpc::constants::MAXSECTOR; sector++) {
50-
for (int32_t p = 0; p < TPC_PADS_IN_SECTOR; p++) {
50+
for (int32_t p = 0; p < TPC_REAL_PADS_IN_SECTOR; p++) {
5151
const float gainVal = gainMap.getValue(sector, p);
5252
inv ? mGainCorrection[sector].set(p, (gainVal > 1.e-5f) ? 1.f / gainVal : 1.f) : mGainCorrection[sector].set(p, gainVal);
5353
}

0 commit comments

Comments
 (0)