Skip to content

Commit

Permalink
refactor: Use detector element to check if surface is sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 13, 2024
1 parent 6345ed8 commit e9f6fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/Detray/src/DetrayGeometryConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ detray::io::surface_payload Acts::DetrayGeometryConverter::convertSurface(
surfacePayload.barcode = std::nullopt;
surfacePayload.type = static_cast<detray::surface_id>(
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());
Expand Down

0 comments on commit e9f6fad

Please sign in to comment.