Project
Loading...
Searching...
No Matches
o2::acts::ActsGeometryService Class Reference

#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().
 

Detailed Description

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:

auto& actsGeo = pc.services().get<o2::acts::ActsGeometryService>();
const auto& tg = actsGeo.getGeometry();
const Acts::TrackingGeometry & getGeometry() const

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.

Member Function Documentation

◆ getGeometry()

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.

◆ getGeometryShared()

std::shared_ptr< const Acts::TrackingGeometry > o2::acts::ActsGeometryService::getGeometryShared ( ) const

Definition at line 35 of file ActsGeometryService.cxx.

◆ getIndex()

const SurfaceIndexMap & o2::acts::ActsGeometryService::getIndex ( ) const

Definition at line 40 of file ActsGeometryService.cxx.

◆ getManager()

static TrackingGeometryManager & o2::acts::ActsGeometryService::getManager ( )
inlinestatic

Escape hatch for configuration (builder, material map) from init().

Definition at line 63 of file ActsGeometryService.h.

◆ getNominalContext()

const Acts::GeometryContext & o2::acts::ActsGeometryService::getNominalContext ( ) const

Definition at line 45 of file ActsGeometryService.cxx.

◆ isBuilt()

bool o2::acts::ActsGeometryService::isBuilt ( ) const

Definition at line 50 of file ActsGeometryService.cxx.


The documentation for this class was generated from the following files: