ATLAS Offline Software
Loading...
Searching...
No Matches
GeometryRealmConvTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSEVENTCNV_GeometryRealmConvTool_H
6#define ACTSEVENTCNV_GeometryRealmConvTool_H
7
9
12
15
16
17namespace Acts{
18 class SurfaceBounds;
19}
20
21namespace ActsTrk{
27 class GeometryRealmConvTool : public extends<AthAlgTool, IGeometryRealmConvTool> {
28 public:
29 using base_class::base_class;
31
32 virtual StatusCode initialize() override final;
34 virtual SurfacePtr_t convertSurfaceToTrk(const EventContext& ctx,
35 const Acts::Surface& actsSurface) const override final;
37 virtual std::shared_ptr<const Acts::Surface> convertSurfaceToActs(const Trk::Surface& atlasSurface) const override final;
39 virtual Acts::BoundTrackParameters
40 convertTrackParametersToActs(const EventContext& ctx,
41 const Trk::TrackParameters& atlasParameter,
42 Trk::ParticleHypothesis hypothesis = Trk::pion) const override final;
44 virtual std::unique_ptr<Trk::TrackParameters>
45 convertTrackParametersToTrk(const EventContext& ctx,
46 const Acts::BoundTrackParameters& actsParameters) const override final;
47
48 private:
52 std::shared_ptr<Trk::SurfaceBounds> translateBounds(const Acts::SurfaceBounds& bounds) const;
57 SurfacePtr_t translateFreeSurface(const EventContext& ctx,
58 const Acts::Surface& surface) const;
59
60 PublicToolHandle<ITrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", ""};
61
62 std::shared_ptr<const Acts::TrackingGeometry> m_trackingGeometry{};
63 std::unordered_map<Identifier, std::shared_ptr<const Acts::Surface>> m_actsSurfaceMap{};
64
65 Gaudi::Property<bool> m_extractMuonSurfaces{this, "ExtractMuonSurfaces", false,
66 "If True, use the MuonDetectorManager to extract the Muon surfaces"};
67
69 SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_muonMgrKey{this, "MuonManagerKey", "MuonDetectorManager"};
70
71
72
73 };
74}
75
76#endif
ActsTrk::GeometryRealmConvTool::SurfacePtr_t SurfacePtr_t
Implementation of the IGeometryRealmConvTool.
virtual std::shared_ptr< const Acts::Surface > convertSurfaceToActs(const Trk::Surface &atlasSurface) const override final
Translate the parsed Trk surface into an Acts surface.
virtual Acts::BoundTrackParameters convertTrackParametersToActs(const EventContext &ctx, const Trk::TrackParameters &atlasParameter, Trk::ParticleHypothesis hypothesis=Trk::pion) const override final
Translates the Trk track parameters into bound Acts track parameters with a particle hypothesis.
SurfacePtr_t translateFreeSurface(const EventContext &ctx, const Acts::Surface &surface) const
Translate a surface that is not associated with any detector element.
std::shared_ptr< const Acts::TrackingGeometry > m_trackingGeometry
virtual std::unique_ptr< Trk::TrackParameters > convertTrackParametersToTrk(const EventContext &ctx, const Acts::BoundTrackParameters &actsParameters) const override final
Translates the bounded Acts track parameters to Trk parameters.
PublicToolHandle< ITrackingGeometryTool > m_trackingGeometryTool
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonMgrKey
Detector manager to fetch the legacy Trk surfaces.
std::shared_ptr< Trk::SurfaceBounds > translateBounds(const Acts::SurfaceBounds &bounds) const
Translate the Acts surface bounds to its equivalent in the Trk realm.
Gaudi::Property< bool > m_extractMuonSurfaces
virtual SurfacePtr_t convertSurfaceToTrk(const EventContext &ctx, const Acts::Surface &actsSurface) const override final
Translates the parsed Acts surface into a Trk::Surface via associated detector element.
std::unordered_map< Identifier, std::shared_ptr< const Acts::Surface > > m_actsSurfaceMap
virtual StatusCode initialize() override final
Geometry helper tool extending the Tracking geometry service by the data dependency to fetch the geom...
STL class.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Ensure that the ATLAS eigen extensions are properly loaded.
STL namespace.
#define private
Definition testRead.cxx:27