ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEventCnv
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
10
#include "
ActsGeometryInterfaces/IGeometryRealmConvTool.h
"
11
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
12
13
#include "
ActsEvent/ContextUtility.h
"
14
#include "
MuonReadoutGeometry/MuonDetectorManager.h
"
15
#include "
StoreGate/ReadCondHandleKey.h
"
16
17
18
namespace
Acts
{
19
class
SurfaceBounds;
20
}
21
22
namespace
ActsTrk
{
28
class
GeometryRealmConvTool
:
public
extends<AthAlgTool, IGeometryRealmConvTool> {
29
public
:
30
using
base_class::base_class;
31
~GeometryRealmConvTool
();
32
33
virtual
StatusCode
initialize
() override final;
35
virtual
SurfacePtr_t
convertSurfaceToTrk
(
const
EventContext& ctx,
36
const
Acts
::Surface& actsSurface)
const
override final;
38
virtual
std
::shared_ptr<
const
Acts
::Surface>
convertSurfaceToActs
(
const
Trk
::Surface& atlasSurface)
const
override final;
40
virtual
Acts
::BoundTrackParameters
41
convertTrackParametersToActs
(
const
EventContext& ctx,
42
const
Trk
::TrackParameters& atlasParameter,
43
Trk
::
ParticleHypothesis
hypothesis =
Trk
::pion)
const
override final;
45
virtual
std
::
unique_ptr
<
Trk
::TrackParameters>
46
convertTrackParametersToTrk
(
const
EventContext& ctx,
47
const
Acts
::BoundTrackParameters& actsParameters)
const
override final;
48
49
private
:
53
std
::shared_ptr<
Trk
::SurfaceBounds>
translateBounds
(
const
Acts
::SurfaceBounds& bounds)
const
;
58
SurfacePtr_t
translateFreeSurface
(
const
EventContext& ctx,
59
const
Acts
::Surface& surface)
const
;
60
61
ServiceHandle
<
ActsTrk
::
ITrackingGeometrySvc
>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
62
64
ActsTrk::ContextUtility
m_ctxProvider
{
this
};
65
66
std::unordered_map<Identifier, std::shared_ptr<const Acts::Surface>>
m_actsSurfaceMap
{};
67
68
Gaudi::Property<bool>
m_extractMuonSurfaces
{
this
,
"ExtractMuonSurfaces"
,
false
,
69
"If True, use the MuonDetectorManager to extract the Muon surfaces"
};
70
72
SG::ReadCondHandleKey<MuonGM::MuonDetectorManager>
m_muonMgrKey
{
this
,
"MuonManagerKey"
,
"MuonDetectorManager"
};
73
74
75
76
};
77
}
78
79
#endif
ITrackingGeometrySvc.h
AthAlgTool.h
ContextUtility.h
SurfacePtr_t
ActsTrk::GeometryRealmConvTool::SurfacePtr_t SurfacePtr_t
Definition
GeometryRealmConvTool.cxx:50
IGeometryRealmConvTool.h
MuonDetectorManager.h
ReadCondHandleKey.h
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
ActsTrk::GeometryRealmConvTool
Implementation of the IGeometryRealmConvTool.
Definition
GeometryRealmConvTool.h:28
ActsTrk::GeometryRealmConvTool::convertSurfaceToActs
virtual std::shared_ptr< const Acts::Surface > convertSurfaceToActs(const Trk::Surface &atlasSurface) const override final
Translate the parsed Trk surface into an Acts surface.
Definition
GeometryRealmConvTool.cxx:196
ActsTrk::GeometryRealmConvTool::convertTrackParametersToActs
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.
Definition
GeometryRealmConvTool.cxx:222
ActsTrk::GeometryRealmConvTool::translateFreeSurface
SurfacePtr_t translateFreeSurface(const EventContext &ctx, const Acts::Surface &surface) const
Translate a surface that is not associated with any detector element.
Definition
GeometryRealmConvTool.cxx:134
ActsTrk::GeometryRealmConvTool::convertTrackParametersToTrk
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.
Definition
GeometryRealmConvTool.cxx:279
ActsTrk::GeometryRealmConvTool::m_muonMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonMgrKey
Detector manager to fetch the legacy Trk surfaces.
Definition
GeometryRealmConvTool.h:72
ActsTrk::GeometryRealmConvTool::translateBounds
std::shared_ptr< Trk::SurfaceBounds > translateBounds(const Acts::SurfaceBounds &bounds) const
Translate the Acts surface bounds to its equivalent in the Trk realm.
Definition
GeometryRealmConvTool.cxx:87
ActsTrk::GeometryRealmConvTool::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition
GeometryRealmConvTool.h:61
ActsTrk::GeometryRealmConvTool::m_extractMuonSurfaces
Gaudi::Property< bool > m_extractMuonSurfaces
Definition
GeometryRealmConvTool.h:68
ActsTrk::GeometryRealmConvTool::~GeometryRealmConvTool
~GeometryRealmConvTool()
ActsTrk::GeometryRealmConvTool::convertSurfaceToTrk
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.
Definition
GeometryRealmConvTool.cxx:162
ActsTrk::GeometryRealmConvTool::m_ctxProvider
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
Definition
GeometryRealmConvTool.h:64
ActsTrk::GeometryRealmConvTool::m_actsSurfaceMap
std::unordered_map< Identifier, std::shared_ptr< const Acts::Surface > > m_actsSurfaceMap
Definition
GeometryRealmConvTool.h:66
ActsTrk::GeometryRealmConvTool::initialize
virtual StatusCode initialize() override final
Definition
GeometryRealmConvTool.cxx:54
ActsTrk::ITrackingGeometrySvc
Interface class for the ATLAS service providing the ActsTrackingGeometry.
Definition
Acts/ActsGeometryInterfaces/ActsGeometryInterfaces/ITrackingGeometrySvc.h:31
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
unique_ptr
STL class.
const
ActsTrk::ParticleHypothesis
Definition
ParticleHypothesisEncoding.h:11
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Acts
This class is not to needed in AthSimulation.
Definition
MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/xAODMuonPrepData/UtilFunctions.h:23
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
std
STL namespace.
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0