ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDetDescrTestTools
TrkDetDescrTestTools
VertexMapper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// VertexMapper.h, (c) ATLAS Detector software
8
9
#ifndef TRKDETDESCRTOOLS_VERTEXMAPPER_H
10
#define TRKDETDESCRTOOLS_VERTEXMAPPER_H
11
12
// Amg
13
#include "
GeoPrimitives/GeoPrimitives.h
"
14
// Gaudi & Athena
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "GaudiKernel/IIncidentListener.h"
17
// Trk
18
#include "
TrkDetDescrInterfaces/IVertexMapper.h
"
19
// ROOT
20
#include "TTree.h"
21
#include "TString.h"
22
23
#include "
CxxUtils/checker_macros.h
"
24
25
class
TTree;
26
27
namespace
Trk
{
28
29
class
TrackingGeometry
;
30
40
41
class
ATLAS_NOT_THREAD_SAFE
VertexMapper
:
//mutable
42
public
AthAlgTool
,
virtual
public
IVertexMapper
{
43
44
public
:
45
47
VertexMapper
(
const
std::string&,
48
const
std::string&,
49
const
IInterface*);
50
52
MappedVertex
mapToLocal
(
const
Amg::Vector3D
&
vertex
)
const
;
53
55
void
handle
(
const
Incident& inc );
56
57
private
:
58
60
StatusCode
updateTrackingGeometry
()
const
;
61
63
const
TrackingGeometry
&
trackingGeometry
()
const
;
64
65
mutable
const
TrackingGeometry
*
m_trackingGeometry
=
nullptr
;
66
Gaudi::Property<std::string>
m_trackingGeometryName
67
{
this
,
"TrackingGeometry"
,
"AtlasTrackingGeometry"
,
68
"Name of the TrackingGeometry as given in Detector Store"
};
69
70
};
71
72
inline
const
Trk::TrackingGeometry
&
VertexMapper::trackingGeometry
()
const
{
73
if
(!
m_trackingGeometry
&&
updateTrackingGeometry
().isFailure()){
74
ATH_MSG_FATAL
(
"Could not load TrackingGeometry with name '"
<<
m_trackingGeometryName
<<
"'. Aborting."
);
75
throw
GaudiException(
"VertexMapper"
,
"Problem with TrackingGeometry loading."
, StatusCode::FAILURE);
76
}
77
return
(*
m_trackingGeometry
);
78
}
79
80
}
// end of namespace
81
82
#endif
// TRKDETDESCRTOOLS_VERTEXMAPPER_H
83
AthAlgTool.h
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition
AthMsgStreamMacros.h:34
GeoPrimitives.h
IVertexMapper.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::IVertexMapper
Interface class IVertexMapper.
Definition
IVertexMapper.h:75
Trk::TrackingGeometry
The TrackingGeometry class is the owner of the constructed TrackingVolumes.
Definition
TrackingGeometry.h:68
Trk::VertexMapper::trackingGeometry
const TrackingGeometry & trackingGeometry() const
retrieve the tracking geometry
Definition
VertexMapper.h:72
Trk::VertexMapper::mapToLocal
MappedVertex mapToLocal(const Amg::Vector3D &vertex) const
Record the vertex into the local frame of the closest module.
Definition
VertexMapper.cxx:32
Trk::VertexMapper::handle
void handle(const Incident &inc)
Handle the incident from the incident service.
Trk::VertexMapper::m_trackingGeometry
const TrackingGeometry * m_trackingGeometry
the tracking geometry owned by the navigator
Definition
VertexMapper.h:65
Trk::VertexMapper::m_trackingGeometryName
Gaudi::Property< std::string > m_trackingGeometryName
Definition
VertexMapper.h:67
Trk::VertexMapper::VertexMapper
VertexMapper(const std::string &, const std::string &, const IInterface *)
AlgTool like constructor.
Definition
VertexMapper.cxx:16
Trk::VertexMapper::updateTrackingGeometry
StatusCode updateTrackingGeometry() const
< retrieve TrackingGeometry
Definition
VertexMapper.cxx:22
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::vertex
@ vertex
Definition
MeasurementType.h:21
Trk::MappedVertex
Definition
IVertexMapper.h:23
Generated on
for ATLAS Offline Software by
1.17.0