ATLAS Offline Software
Loading...
Searching...
No Matches
JetTrackVtxAssoAlg.h
Go to the documentation of this file.
1// this is a -*- C++ -*- file
2/*
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4*/
5
27
28#ifndef JetTrackVtxAssoAlg_H
29#define JetTrackVtxAssoAlg_H
30
32#include "AsgTools/ToolHandle.h"
35
37
39
40
43
44
46
47public:
48
49 JetTrackVtxAssoAlg(const std::string & n, ISvcLocator* l) : EL::AnaReentrantAlgorithm(n,l) {}
50
52 StatusCode initialize() override;
53 StatusCode execute(const EventContext& ctx) const override;
54
55private:
56
57 std::unique_ptr<jet::TrackVertexAssociation>
59 const xAOD::VertexContainer*) const;
60 // Constuct a TrackVertexAssociation using the older custom method
61 // jet::TrackVertexAssociation*
62 std::unique_ptr<jet::TrackVertexAssociation>
64 const xAOD::VertexContainer*) const;
65
66 std::unique_ptr<jet::TrackVertexAssociation>
69 bool useCustom) const;
70
71
72 ToolHandle<CP::ITrackVertexAssociationTool> m_tvaTool {this, "TrackVertexAssoTool", "", "CP::ITrackVertexAssociationTool instance" };
73
74 // old Configurable parameters
75
76 Gaudi::Property<float> m_transDistMax= {this, "MaxTransverseDistance",10e6, ""};
77 Gaudi::Property<float> m_longDistMax = {this , "MaxLongitudinalDistance",10e6 , ""};
78 Gaudi::Property<float> m_maxZ0SinTheta = {this, "MaxZ0SinTheta", 10e6, ""};
79
80 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackContainer_key = {this, "TrackParticleContainer", "" , "" };
82 SG::WriteHandleKey<jet::TrackVertexAssociation> m_tva_key = {this, "TrackVertexAssociation", "" , "Output name of jet::TrackVertexAssociation" };
83
84
85};
86
87#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackContainer_key
StatusCode initialize() override
Athena algorithm's Hooks.
std::unique_ptr< jet::TrackVertexAssociation > buildTrackVertexAssociation_custom(const xAOD::TrackParticleContainer *, const xAOD::VertexContainer *) const
std::unique_ptr< jet::TrackVertexAssociation > buildTrackVertexAssociation_withTool(const xAOD::TrackParticleContainer *, const xAOD::VertexContainer *) const
Gaudi::Property< float > m_longDistMax
Gaudi::Property< float > m_transDistMax
ToolHandle< CP::ITrackVertexAssociationTool > m_tvaTool
std::unique_ptr< jet::TrackVertexAssociation > makeTrackVertexAssociation(const xAOD::TrackParticleContainer *, const xAOD::VertexContainer *, bool useCustom) const
SG::WriteHandleKey< jet::TrackVertexAssociation > m_tva_key
Gaudi::Property< float > m_maxZ0SinTheta
JetTrackVtxAssoAlg(const std::string &n, ISvcLocator *l)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".