ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace Acts {
21 class TrackingGeometry;
22}
23
24
25
26
27class 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
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual const ActsTrk::DetectorElementToActsGeometryIdMap * surfaceIdMap() const override
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
SG::ReadHandleKey< ActsTrk::GeometryContext > m_rchk
virtual const ActsTrk::GeometryContext & getNominalGeometryContext() const override
virtual std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry() const override
virtual const ActsTrk::GeometryContext & getGeometryContext(const EventContext &ctx) const override
std::unique_ptr< const ActsTrk::DetectorElementToActsGeometryIdMap > m_detIdMap
std::unique_ptr< ActsTrk::DetectorElementToActsGeometryIdMap > createDetectorElementToGeoIdMap() const
Creates and popules the DetectorElement -> Acts::Surface geo identifier map from the geometry service...
Property holding a SG store/key/clid from which a ReadHandle is made.