ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleVertexAssociationTool.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/*
4 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14#ifndef TRACKD3PDMAKER_TRACKPARTICLEVERTEXASSOCIATIONTOOL_H
15#define TRACKD3PDMAKER_TRACKPARTICLEVERTEXASSOCIATIONTOOL_H
16
21
22namespace Trk {
23 class VxCandidate;
24}
25namespace Rec {
26 class TrackParticle;
27}
28
29namespace D3PD {
30
35 : public SingleAssociationTool<Types<Rec::TrackParticle, xAOD::TrackParticle>,
36 Types<Trk::VxCandidate, xAOD::Vertex> >
37{
38public:
41
48 TrackParticleVertexAssociationTool (const std::string& type,
49 const std::string& name,
50 const IInterface* parent);
51
53 virtual StatusCode initialize() override;
54 virtual StatusCode book() final;
55
56
63 virtual const Trk::VxCandidate* get (const Rec::TrackParticle& p) override;
64
65
72 virtual const xAOD::Vertex* get (const xAOD::TrackParticle& p) override;
73
74
76
79
81 bool m_fast;
82
84 float *m_weight;
85
87 SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey { this, "VertexContainer", "PrimaryVertices", "primary vertex container" };
88
89}; // class TrackParticleVertexAssociationTool
90
91} // namespace D3PD
92
93#endif // not TRACKD3PDMAKER_TRACKPARTICLEVERTEXASSOCIATIONTOOL_H
boost::graph_traits< boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS > >::vertex_descriptor Vertex
Type-safe wrapper for single associator tools.
SingleAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
xAOD vertex container handle key
TrackParticleVertexAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
float * m_weight
weight of the track at the associated vertex
std::string m_targetSGKey
SG key for target collection.
bool m_fast
flag to just return whatever is returned by TrackParticle::reconstructedVertex()
virtual const Trk::VxCandidate * get(const Rec::TrackParticle &p) override
Return the target object.
SingleAssociationTool< Types< Rec::TrackParticle, xAOD::TrackParticle >, Types< Trk::VxCandidate, xAOD::Vertex > > Base
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode book() final
book ntuple variables
Block filler tool for noisy FEB information.
std::tuple< WrapType< TYPES >... > Types
A simple tuple of multiple types.
Gaudi Tools.
Forward declaration.
Ensure that the ATLAS eigen extensions are properly loaded.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private