![]() |
Project
|
#include <ActsGeometryService.h>
Public Member Functions | |
| const Acts::TrackingGeometry & | getGeometry () const |
| std::shared_ptr< const Acts::TrackingGeometry > | getGeometryShared () const |
| const SurfaceIndexMap & | getIndex () const |
| const Acts::GeometryContext & | getNominalContext () const |
| bool | isBuilt () const |
Static Public Member Functions | |
| static TrackingGeometryManager & | getManager () |
| Escape hatch for configuration (builder, material map) from init(). | |
Registry-facing handle on the ACTS tracking geometry.
This is a thin shim over TrackingGeometryManager: both access paths hand out the very same geometry object, so a workflow can mix them freely. What the service adds is DPL-owned lifetime (the geometry is released on device exit rather than at static destruction) and retrieval through the registry:
Registered with ServiceKind::DeviceGlobal: one instance per device process, shared by every data processor in it, and safe to read from several threads once built.
Definition at line 48 of file ActsGeometryService.h.
| const Acts::TrackingGeometry & o2::acts::ActsGeometryService::getGeometry | ( | ) | const |
Builds on first use. Requires gGeoManager to be live and a builder to have been installed on TrackingGeometryManager.
Definition at line 30 of file ActsGeometryService.cxx.
| std::shared_ptr< const Acts::TrackingGeometry > o2::acts::ActsGeometryService::getGeometryShared | ( | ) | const |
Definition at line 35 of file ActsGeometryService.cxx.
| const SurfaceIndexMap & o2::acts::ActsGeometryService::getIndex | ( | ) | const |
Definition at line 40 of file ActsGeometryService.cxx.
|
inlinestatic |
Escape hatch for configuration (builder, material map) from init().
Definition at line 63 of file ActsGeometryService.h.
| const Acts::GeometryContext & o2::acts::ActsGeometryService::getNominalContext | ( | ) | const |
Definition at line 45 of file ActsGeometryService.cxx.
| bool o2::acts::ActsGeometryService::isBuilt | ( | ) | const |
Definition at line 50 of file ActsGeometryService.cxx.