|
ACTS
Experiment-independent tracking
|
Converter for ACTS geometry to Detray payload format. More...
#include </home/runner/work/acts/acts/Plugins/Detray/include/ActsPlugins/Detray/DetrayPayloadConverter.hpp>
Classes | |
| struct | Config |
| Configuration for the Detray payload converter. More... | |
| struct | Payloads |
| Container for all Detray payload outputs. More... | |
Public Types | |
| using | DetraySurfaceGrid |
| Detray surface grid payload type. | |
| using | DetraySurfaceMaterial |
| Detray surface material payload type. | |
| using | SurfaceLookupFunction |
| Function type for looking up surface indices in detray conversion. | |
Public Member Functions | |
| DetrayPayloadConverter (const Config &config, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("DetrayPayloadConverter", Acts::Logging::INFO)) | |
| Constructor. | |
| std::pair< std::vector< detray::io::grid_payload< detray::io::material_slab_payload, detray::io::material_id > >, detray::io::material_volume_payload > | convertMaterial (const Acts::TrackingVolume &volume, const std::unordered_map< const Acts::Surface *, std::size_t > &surfaceIndices, detray::io::volume_payload &volPayload) const |
| Convert material. | |
| detray::io::surface_payload | convertSurface (const Acts::GeometryContext &gctx, const Acts::Surface &surface, bool portal=false) const |
| Convert surface. | |
| Payloads | convertTrackingGeometry (const Acts::GeometryContext &gctx, const Acts::TrackingGeometry &geometry) const |
| Convert tracking geometry. | |
| detray::io::volume_payload | convertVolume (const Acts::GeometryContext &gctx, const Acts::TrackingVolume &volume) const |
| Convert volume. | |
Static Public Member Functions | |
| static std::optional< DetraySurfaceMaterial > | convertBinnedSurfaceMaterial (const Acts::BinnedSurfaceMaterial &material) |
| Convert binned surface material. | |
| static std::optional< DetraySurfaceGrid > | convertCylinderNavigationPolicy (const Acts::CylinderNavigationPolicy &policy, const Acts::GeometryContext &gctx, const SurfaceLookupFunction &surfaceLookup, const Acts::Logger &logger) |
| Convert cylinder navigation policy. | |
| static std::optional< DetraySurfaceMaterial > | convertGridSurfaceMaterial (const Acts::IGridSurfaceMaterialBase &material) |
| Convert grid surface material. | |
| static std::optional< DetraySurfaceMaterial > | convertHomogeneousSurfaceMaterial (const Acts::HomogeneousSurfaceMaterial &material) |
| Convert homogeneous surface material. | |
| static detray::io::mask_payload | convertMask (const Acts::SurfaceBounds &bounds, bool forPortal) |
| Convert surface bounds to detray mask payload. | |
| static std::optional< DetraySurfaceGrid > | convertMultiLayerNavigationPolicy (const Acts::Experimental::MultiLayerNavigationPolicy &policy, const Acts::GeometryContext &gctx, const SurfaceLookupFunction &surfaceLookup, const Acts::Logger &logger) |
| Convert multi layer navigation policy. | |
| static std::optional< DetraySurfaceGrid > | convertMultiNavigationPolicy (const Acts::MultiNavigationPolicy &policy, const Acts::GeometryContext &gctx, const SurfaceLookupFunction &surfaceLookup, const Acts::Logger &logger) |
| Convert multi navigation policy. | |
| static std::optional< DetraySurfaceMaterial > | convertProtoSurfaceMaterialBinUtility (const Acts::ProtoSurfaceMaterialT< Acts::BinUtility > &material) |
| Convert proto surface material with bin utility. | |
| static std::optional< DetraySurfaceMaterial > | convertProtoSurfaceMaterialProtoAxes (const Acts::ProtoSurfaceMaterialT< std::vector< Acts::DirectedProtoAxis > > &material) |
| Convert proto surface material with proto axes. | |
| static std::optional< DetraySurfaceGrid > | convertSurfaceArray (const Acts::SurfaceArrayNavigationPolicy &policy, const Acts::GeometryContext &gctx, const SurfaceLookupFunction &surfaceLookup, const Acts::Logger &logger) |
| Convert surface array navigation policy. | |
| static std::optional< DetraySurfaceGrid > | convertTryAllNavigationPolicy (const Acts::TryAllNavigationPolicy &policy, const Acts::GeometryContext &gctx, const SurfaceLookupFunction &surfaceLookup, const Acts::Logger &logger) |
| Convert try all navigation policy. | |
Converter for ACTS geometry to Detray payload format.
Detray surface grid payload type.
Detray surface material payload type.
Function type for looking up surface indices in detray conversion.
|
explicit |
Constructor.
| config | Configuration object |
| logger | Logger instance |
|
static |
Convert binned surface material.
| material | Binned surface material |
|
static |
Convert cylinder navigation policy.
| policy | Cylinder navigation policy |
| gctx | Geometry context |
| surfaceLookup | Surface lookup function |
| logger | Logger instance |
|
static |
Convert grid surface material.
| material | Grid surface material |
|
static |
Convert homogeneous surface material.
| material | Homogeneous surface material |
|
static |
Convert surface bounds to detray mask payload.
| bounds | the surface bounds to convert |
| forPortal | detray special cases the local parametrization for portals for performance reasons |
| std::pair< std::vector< detray::io::grid_payload< detray::io::material_slab_payload, detray::io::material_id > >, detray::io::material_volume_payload > ActsPlugins::DetrayPayloadConverter::convertMaterial | ( | const Acts::TrackingVolume & | volume, |
| const std::unordered_map< const Acts::Surface *, std::size_t > & | surfaceIndices, | ||
| detray::io::volume_payload & | volPayload ) const |
Convert material.
| volume | Tracking volume |
| surfaceIndices | Surface indices map |
| volPayload | Volume payload |
|
static |
Convert multi layer navigation policy.
| policy | Multi layer navigation policy |
| gctx | Geometry context |
| surfaceLookup | Surface lookup function |
| logger | Logger instance |
|
static |
Convert multi navigation policy.
| policy | Multi navigation policy |
| gctx | Geometry context |
| surfaceLookup | Surface lookup function |
| logger | Logger instance |
|
static |
Convert proto surface material with bin utility.
| material | Proto surface material |
|
static |
Convert proto surface material with proto axes.
| material | Proto surface material |
| detray::io::surface_payload ActsPlugins::DetrayPayloadConverter::convertSurface | ( | const Acts::GeometryContext & | gctx, |
| const Acts::Surface & | surface, | ||
| bool | portal = false ) const |
Convert surface.
| gctx | Geometry context |
| surface | Surface to convert |
| portal | Is portal surface |
|
static |
Convert surface array navigation policy.
| policy | Surface array navigation policy |
| gctx | Geometry context |
| surfaceLookup | Surface lookup function |
| logger | Logger instance |
| Payloads ActsPlugins::DetrayPayloadConverter::convertTrackingGeometry | ( | const Acts::GeometryContext & | gctx, |
| const Acts::TrackingGeometry & | geometry ) const |
Convert tracking geometry.
| gctx | Geometry context |
| geometry | Tracking geometry to convert |
|
static |
Convert try all navigation policy.
| policy | Try all navigation policy |
| gctx | Geometry context |
| surfaceLookup | Surface lookup function |
| logger | Logger instance |
| detray::io::volume_payload ActsPlugins::DetrayPayloadConverter::convertVolume | ( | const Acts::GeometryContext & | gctx, |
| const Acts::TrackingVolume & | volume ) const |
Convert volume.
| gctx | Geometry context |
| volume | Volume to convert |