Commit a192dd36 authored by Jonas Hahnfeld's avatar Jonas Hahnfeld
Browse files

Remove unused ScalarSegmentContainsKernel

parent 5d8be486
......@@ -135,10 +135,6 @@ struct PolyhedronImplementation {
VECGEOM_FORCE_INLINE
static bool ScalarContainsKernel(UnplacedStruct_t const &unplaced, Vector3D<Precision> const &point);
VECCORE_ATT_HOST_DEVICE
VECGEOM_FORCE_INLINE
static bool ScalarSegmentContainsKernel(UnplacedStruct_t const &unplaced, Vector3D<Precision> const &point, int);
VECCORE_ATT_HOST_DEVICE
VECGEOM_FORCE_INLINE
static Inside_t ScalarInsideKernel(UnplacedStruct_t const &unplaced, Vector3D<Precision> const &point);
......@@ -675,30 +671,6 @@ vecCore::Mask_v<Real_v> PolyhedronImplementation<innerRadiiT, phiCutoutT>::InPhi
return pointSeg0 && pointSeg1;
}
template <Polyhedron::EInnerRadii innerRadiiT, Polyhedron::EPhiCutout phiCutoutT>
VECCORE_ATT_HOST_DEVICE
bool PolyhedronImplementation<innerRadiiT, phiCutoutT>::ScalarSegmentContainsKernel(UnplacedStruct_t const &unplaced,
Vector3D<Precision> const &point,
int segmentIndex)
{
ZSegment const &segment = unplaced.fZSegments[segmentIndex];
// Check that the point is in the outer shell
if (!segment.outer.Contains<Precision>(point)) return false;
// Check that the point is not in the inner shell
if (TreatInner<innerRadiiT>(segment.hasInnerRadius())) {
if (segment.inner.Contains<Precision>(point)) return false;
}
// check phi using the bounding tubes Wegde
if (unplaced.fHasPhiCutout)
if (!unplaced.fBoundingTube.fPhiWedge.Contains<Precision>(point)) return false;
return true;
}
template <Polyhedron::EInnerRadii innerRadiiT, Polyhedron::EPhiCutout phiCutoutT>
VECCORE_ATT_HOST_DEVICE
bool PolyhedronImplementation<innerRadiiT, phiCutoutT>::ScalarContainsKernel(UnplacedStruct_t const &unplaced,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment