diff --git a/Plugins/Detray/src/DetrayGeometryConverter.cpp b/Plugins/Detray/src/DetrayGeometryConverter.cpp index 23eb56a0f8c..534d110dae9 100644 --- a/Plugins/Detray/src/DetrayGeometryConverter.cpp +++ b/Plugins/Detray/src/DetrayGeometryConverter.cpp @@ -59,7 +59,7 @@ detray::io::surface_payload Acts::DetrayGeometryConverter::convertSurface( surfacePayload.barcode = std::nullopt; surfacePayload.type = static_cast( portal ? surface_id::e_portal - : (surface.geometryId().sensitive() > 0 + : (surface.associatedDetectorElement() != nullptr ? detray::surface_id::e_sensitive : detray::surface_id::e_passive)); surfacePayload.mask = convertMask(surface.bounds());