|
ACTS
Experiment-independent tracking
|
Converter from an ACTS TrackingGeometry to a detray detector. More...
#include </home/runner/work/acts/acts/Plugins/Detray/include/ActsPlugins/Detray/DetrayGeometryConverter.hpp>
Classes | |
| struct | Config |
| Configuration for the geometry converter. More... | |
| struct | DetrayGeometry |
| Combined result of a geometry conversion. More... | |
Public Member Functions | |
| DetrayGeometryConverter (Config config, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("DetrayGeometryConverter", Acts::Logging::INFO)) | |
| Constructor. | |
| template<typename metadata_t> | |
| DetrayGeometry< metadata_t > | convert (vecmem::memory_resource &mr, const Acts::GeometryContext &gctx, const std::shared_ptr< const Acts::TrackingGeometry > &trackingGeometry, const std::string &detectorName="") const |
| Convert an ACTS TrackingGeometry into a detray detector. | |
Converter from an ACTS TrackingGeometry to a detray detector.
The geometry conversion is a two-step process: first the ACTS geometry is converted into detray payloads by a DetrayPayloadConverter, then those payloads are used to build the actual detray detector. This class drives the second step and lets the call site fully customize the first step by supplying its own configured DetrayPayloadConverter instance through the Config.
|
explicit |
Constructor.
| config | Configuration object |
| logger | Logger instance |
| DetrayGeometry< metadata_t > ActsPlugins::DetrayGeometryConverter::convert | ( | vecmem::memory_resource & | mr, |
| const Acts::GeometryContext & | gctx, | ||
| const std::shared_ptr< const Acts::TrackingGeometry > & | trackingGeometry, | ||
| const std::string & | detectorName = "" ) const |
Convert an ACTS TrackingGeometry into a detray detector.
| metadata_t | the detector metadata type to build |
| mr | the memory resource to use for the detray detector construction |
| gctx | the geometry context |
| trackingGeometry | the ACTS tracking geometry to convert |
| detectorName | the name to set for the detray detector (optional, if not set, it will be taken from the payloads or defaulted to empty) |
This method performs the following steps: