ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticlePerigeeAtBSAssociationTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
10
12
14
15namespace D3PD {
16
17
19
20 CHECK( Base::initialize() );
21
22 ATH_CHECK(m_beamSpotKey.initialize());
23
24 // Pick up the TrackToVertex tool
25 StatusCode sc = m_trackToVertexTool.retrieve();
26 if(sc.isFailure()){
27 REPORT_MESSAGE (MSG::ERROR) << "Could not retrieve TrackToVertexTool";
28 return StatusCode::FAILURE;
29 }
30
31 return StatusCode::SUCCESS;
32}
33
34
43{
45 Amg::Vector3D beamSpot(0,0,0);
47 beamSpot = beamSpotHandle->beamVtx().position();
48
49 return m_trackToVertexTool->perigeeAtVertex(Gaudi::Hive::currentContext(), track, beamSpot).release();
50}
51
65
66} // namespace D3PD
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
static Double_t sc
Associate from a TrackParticle to its perigee at the beam spot.
virtual const Trk::TrackParameters * get(const xAOD::TrackParticle &p) override
Return the target object.
virtual void releaseObject(const Trk::TrackParameters *p) override
Release an object retrieved from the association.
Eigen::Matrix< double, 3, 1 > Vector3D
Block filler tool for noisy FEB information.
ParametersBase< TrackParametersDim, Charged > TrackParameters
TrackParticle_v1 TrackParticle
Reference the current persistent version: