ATLAS Offline Software
VertexMapper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 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
14 // Gaudi & Athena
16 #include "GaudiKernel/IIncidentListener.h"
17 // Trk
19 // ROOT
20 #include "TTree.h"
21 #include "TString.h"
22 
24 
25 class TTree;
26 
27 namespace Trk {
28 
29  class TrackingGeometry;
30 
42  public AthAlgTool, virtual public IVertexMapper {
43 
44  public:
45 
47  VertexMapper(const std::string&,
48  const std::string&,
49  const IInterface*);
50 
52  virtual ~VertexMapper();
53 
56 
59 
61  MappedVertex mapToLocal(const Amg::Vector3D& vertex) const;
62 
64  void handle( const Incident& inc );
65 
66  private:
67 
69  StatusCode updateTrackingGeometry() const;
70 
72  const TrackingGeometry& trackingGeometry() const;
73 
75  std::string m_trackingGeometryName;
76 
77  };
78 
80  if (!m_trackingGeometry && updateTrackingGeometry().isFailure()){
81  ATH_MSG_FATAL("Could not load TrackingGeometry with name '" << m_trackingGeometryName << "'. Aborting." );
82  throw GaudiException("VertexMapper", "Problem with TrackingGeometry loading.", StatusCode::FAILURE);
83  }
84  return (*m_trackingGeometry);
85  }
86 
87 } // end of namespace
88 
89 #endif // TRKDETDESCRTOOLS_VERTEXMAPPER_H
90 
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:53
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
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
initialize
void initialize()
Definition: run_EoverP.cxx:894
Trk::MappedVertex
Definition: IVertexMapper.h:23
Trk::IVertexMapper
Definition: IVertexMapper.h:75
Trk::VertexMapper::updateTrackingGeometry
StatusCode updateTrackingGeometry() const
< retrieve TrackingGeometry
Definition: VertexMapper.cxx:50
IVertexMapper.h
GeoPrimitives.h
Trk::VertexMapper::m_trackingGeometry
const TrackingGeometry * m_trackingGeometry
the tracking geometry owned by the navigator
Definition: VertexMapper.h:74
Trk::TrackingGeometry
Definition: TrackingGeometry.h:67
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::VertexMapper::m_trackingGeometryName
std::string m_trackingGeometryName
Name of the TrackingGeometry as given in Detector Store.
Definition: VertexMapper.h:75
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VertexMapper::~VertexMapper
virtual ~VertexMapper()
Virtual destructor.
Trk::VertexMapper::handle
void handle(const Incident &inc)
Handle the incident from the incident service.
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
AthAlgTool
Definition: AthAlgTool.h:26
checker_macros.h
Define macros for attributes used to control the static checker.
Trk::VertexMapper
Definition: VertexMapper.h:42
Trk::VertexMapper::trackingGeometry
const TrackingGeometry & trackingGeometry() const
retrieve the tracking geometry
Definition: VertexMapper.h:79