ATLAS Offline Software
ActsTrackingGeometryTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSGEOMETRY_ACTSTRACKINGGEOMETRYTOOL_H
6 #define ACTSGEOMETRY_ACTSTRACKINGGEOMETRYTOOL_H
7 
8 // ATHENA
11 
12 // PACKAGE
17 
18 // ACTS
19 
20 namespace Acts {
21  class TrackingGeometry;
22 }
23 
24 
25 
26 
27 class ActsTrackingGeometryTool : public extends<AthAlgTool, ActsTrk::ITrackingGeometryTool> {
28 
29  public:
30  StatusCode initialize() override;
31 
32  using base_class::base_class;
33 
34  virtual std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry() const override;
35 
36  virtual const ActsTrk::GeometryContext& getGeometryContext(const EventContext& ctx) const override;
37 
38  virtual const ActsTrk::GeometryContext& getNominalGeometryContext() const override;
39 
40  virtual const ActsTrk::DetectorElementToActsGeometryIdMap* surfaceIdMap() const override;
41  private:
43  std::unique_ptr<ActsTrk::DetectorElementToActsGeometryIdMap> createDetectorElementToGeoIdMap() const;
44 
45  ServiceHandle<ActsTrk::ITrackingGeometrySvc> m_trackingGeometrySvc{this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"};
46 
47  SG::ReadHandleKey<ActsTrk::GeometryContext> m_rchk{this, "ActsAlignmentKey", "ActsAlignment", "cond read key for the alignment"};
48 
49  std::unique_ptr<const ActsTrk::DetectorElementToActsGeometryIdMap> m_detIdMap{};
50 };
51 
52 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ITrackingGeometrySvc.h
ActsTrackingGeometryTool::surfaceIdMap
virtual const ActsTrk::DetectorElementToActsGeometryIdMap * surfaceIdMap() const override
Definition: ActsTrackingGeometryTool.cxx:32
ActsTrk::DetectorElementToActsGeometryIdMap
Definition: DetectorElementToActsGeometryIdMap.h:31
ActsTrackingGeometryTool::getGeometryContext
virtual const ActsTrk::GeometryContext & getGeometryContext(const EventContext &ctx) const override
Definition: ActsTrackingGeometryTool.cxx:36
SG::ReadHandleKey< ActsTrk::GeometryContext >
GeometryContext.h
ActsTrackingGeometryTool::m_rchk
SG::ReadHandleKey< ActsTrk::GeometryContext > m_rchk
Definition: ActsTrackingGeometryTool.h:47
ActsTrackingGeometryTool::initialize
StatusCode initialize() override
Definition: ActsTrackingGeometryTool.cxx:14
ActsTrackingGeometryTool::getNominalGeometryContext
virtual const ActsTrk::GeometryContext & getNominalGeometryContext() const override
Definition: ActsTrackingGeometryTool.cxx:45
Acts
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/xAODMuonPrepData/UtilFunctions.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
ActsTrk::GeometryContext
Definition: GeometryContext.h:28
ActsTrackingGeometryTool::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition: ActsTrackingGeometryTool.h:45
ActsTrackingGeometryTool
Definition: ActsTrackingGeometryTool.h:27
ITrackingGeometryTool.h
ActsTrackingGeometryTool::createDetectorElementToGeoIdMap
std::unique_ptr< ActsTrk::DetectorElementToActsGeometryIdMap > createDetectorElementToGeoIdMap() const
Creates and popules the DetectorElement -> Acts::Surface geo identifier map from the geometry service...
Definition: ActsTrackingGeometryTool.cxx:51
ActsTrackingGeometryTool::m_detIdMap
std::unique_ptr< const ActsTrk::DetectorElementToActsGeometryIdMap > m_detIdMap
Definition: ActsTrackingGeometryTool.h:49
ActsTrackingGeometryTool::trackingGeometry
virtual std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry() const override
Definition: ActsTrackingGeometryTool.cxx:29
DetectorElementToActsGeometryIdMap.h
ServiceHandle< ActsTrk::ITrackingGeometrySvc >