ATLAS Offline Software
TrackParticlePerigeeAtBSAssociationTool.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
11 #ifndef TRACKD3PDMAKER_TRACKPARTICLEPERIGEEATBSASSOCIATIONTOOL_H
12 #define TRACKD3PDMAKER_TRACKPARTICLEPERIGEEATBSASSOCIATIONTOOL_H
13 
18 #include "GaudiKernel/ToolHandle.h"
19 #include <vector>
21 
22 namespace Rec {
23  class TrackParticle;
24 }
25 
26 namespace D3PD {
27 
32  : public SingleAssociationTool<Types<Rec::TrackParticle, xAOD::TrackParticle>, Trk::TrackParameters>
33 {
34 public:
36 
37  using Base::Base;
38 
39 
40  virtual StatusCode initialize() override;
41 
42 
49  virtual const Trk::TrackParameters* get (const Rec::TrackParticle& p) override;
50 
51 
58  virtual const Trk::TrackParameters* get (const xAOD::TrackParticle& p) override;
59 
60 
61  virtual void releaseObject (const Trk::TrackParameters* p) override;
62 
63 
64  private:
65 
66  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
67 
68  /* Track to vertex extrapolator **/
69  ToolHandle<Reco::ITrackToVertex> m_trackToVertexTool
70  { this, "TrackToVertexTool", "Reco::TrackToVertex", "" };
71 
72 };
73 
74 
75 } // namespace D3PD
76 
77 
78 
79 #endif // not TRACKD3PDMAKER_TRACKPARTICLEPERIGEEATBSASSOCIATIONTOOL_H
TrackParameters.h
D3PD::TrackParticlePerigeeAtBSAssociationTool::initialize
virtual StatusCode initialize() override
Definition: TrackParticlePerigeeAtBSAssociationTool.cxx:19
D3PD::SingleAssociationTool
Type-safe wrapper for single associator tools.
Definition: SingleAssociationTool.h:133
D3PD::TrackParticlePerigeeAtBSAssociationTool
Associate from a VxCandidate to its perigee at the beam spot.
Definition: TrackParticlePerigeeAtBSAssociationTool.h:33
D3PD::TrackParticlePerigeeAtBSAssociationTool::get
virtual const Trk::TrackParameters * get(const Rec::TrackParticle &p) override
Return the target object.
Definition: TrackParticlePerigeeAtBSAssociationTool.cxx:42
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
SingleAssociationTool.h
Type-safe wrapper for single associator tools.
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::TrackParticlePerigeeAtBSAssociationTool::Base
SingleAssociationTool< Types< Rec::TrackParticle, xAOD::TrackParticle >, Trk::TrackParameters > Base
Definition: TrackParticlePerigeeAtBSAssociationTool.h:35
Trk::ParametersBase
Definition: ParametersBase.h:55
D3PD::TrackParticlePerigeeAtBSAssociationTool::m_trackToVertexTool
ToolHandle< Reco::ITrackToVertex > m_trackToVertexTool
Definition: TrackParticlePerigeeAtBSAssociationTool.h:70
ITrackToVertex.h
Rec::TrackParticle
Definition: Reconstruction/Particle/Particle/TrackParticle.h:47
SG::ReadCondHandleKey< InDet::BeamSpotData >
TrackParticle.h
D3PD::TrackParticlePerigeeAtBSAssociationTool::releaseObject
virtual void releaseObject(const Trk::TrackParameters *p) override
Release an object retrieved from the association.
Definition: TrackParticlePerigeeAtBSAssociationTool.cxx:81
BeamSpotData.h
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
D3PD::TrackParticlePerigeeAtBSAssociationTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: TrackParticlePerigeeAtBSAssociationTool.h:66