Skip to content

Commit cd5f934

Browse files
committed
TPC Splines: bugfix in the transformation within the time frame
1 parent e88c15f commit cd5f934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/TPCFastTransformation/TPCFastTransform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ GPUdi() void TPCFastTransform::convPadTimeToLocal(int32_t sector, int32_t row, f
356356

357357
GPUdi() void TPCFastTransform::convPadTimeToLocalInTimeFrame(int32_t sector, int32_t row, float pad, float time, float& y, float& z, float maxTimeBin) const
358358
{
359-
float l = (time - mT0 - maxTimeBin) * mVdrift; // drift length [cm]
359+
float l = getGeometry().getTPCzLength() + (time - mT0 - maxTimeBin) * mVdrift; // drift length [cm]
360360
const auto localval = getGeometry().convPadDriftLengthToLocal(sector, row, pad, l);
361361
y = localval[0];
362362
z = localval[1];

0 commit comments

Comments
 (0)