There was an error while loading. Please reload this page.
2 parents 7716e0a + 63dbb9e commit 222fb19Copy full SHA for 222fb19
1 file changed
Detectors/Base/src/MatLayerCylSet.cxx
@@ -602,7 +602,7 @@ GPUd() bool MatLayerCylSet::getLayersRange(const Ray& ray, short& lmin, short& l
602
// The two lookups are independent so overlapping the pair is worth the clumsier shape.
603
const bool useMax = rmax2 < getRMax2();
604
const bool useMin = rmin2 >= getRMin2();
605
- const int ixMax = useMax ? voxelIndex(rmax2) : [NumVoxels-1];
+ const int ixMax = useMax ? voxelIndex(rmax2) : [NumVoxels - 1];
606
const int ixMin = useMin ? voxelIndex(rmin2) : 0;
607
const uint16_t eMax = mLayerVoxelLU[ixMax];
608
const uint16_t eMin = mLayerVoxelLU[ixMin];
0 commit comments