Skip to content

Commit c3f85c1

Browse files
f3schdavidrohr
authored andcommitted
ITS: fix correctForMaterial arg for actual layer
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 8eebfb5 commit c3f85c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Detectors/ITSMFT/ITS/tracking/GPU/cuda/TrackingKernels.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ GPUg() void __launch_bounds__(256, 1) computeLayerCellsKernel(
505505
break;
506506
}
507507

508-
if (!track.correctForMaterial(layerxX0[layer + iC], layerxX0[layer] * constants::Radl * constants::Rho, true)) {
508+
if (!track.correctForMaterial(layerxX0[layer + iC], layerxX0[layer + iC] * constants::Radl * constants::Rho, true)) {
509509
break;
510510
}
511511

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void TrackerTraits<nLayers>::computeLayerCells(const int iteration)
357357
break;
358358
}
359359

360-
if (!track.correctForMaterial(mTrkParams[0].LayerxX0[iLayer + iC], mTrkParams[0].LayerxX0[iLayer] * constants::Radl * constants::Rho, true)) {
360+
if (!track.correctForMaterial(mTrkParams[0].LayerxX0[iLayer + iC], mTrkParams[0].LayerxX0[iLayer + iC] * constants::Radl * constants::Rho, true)) {
361361
break;
362362
}
363363

0 commit comments

Comments
 (0)