ATLAS Offline Software
RecTrackParticleContainerCnvTool.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
8 #ifndef XAODTRACKINGCNV_RECTRACKPARTICLECONTAINERCNVTOOL_H
9 #define XAODTRACKINGCNV_RECTRACKPARTICLECONTAINERCNVTOOL_H
10 
11 // Gaudi/Athena include(s):
13 #include "GaudiKernel/ToolHandle.h"
14 
15 // converting tool that will be invoked
17 
18 // Local include(s):
21 
22 namespace xAODMaker {
23 
25  public virtual IRecTrackParticleContainerCnvTool {
26 
27  public:
29  RecTrackParticleContainerCnvTool( const std::string& type, const std::string& name,
30  const IInterface* parent );
31 
33  virtual StatusCode initialize() override;
34 
37  xAOD::TrackParticleContainer* xaod, const xAOD::Vertex* vtx = nullptr ) const override;
38 
41  xAOD::TrackParticleContainer* xaod, const ObservedTrackMap* trk_map, const xAOD::Vertex* vtx = nullptr ) const override;
42 
44  virtual StatusCode setParticleCreatorTool(ToolHandle<Trk::ITrackParticleCreatorTool> *tool) override;
45 
46  private:
47  ToolHandle<Trk::ITrackParticleCreatorTool> m_particleCreator;
48 
50 
51 
52  }; // class RecTrackParticleContainerCnvTool definition
53 
54 } // xAODMaker namespace
55 
56 #endif // XAODTRACKINGCNV_RECTRACKPARTICLECONTAINERCNVTOOL_H
ITrkObserverTool.h
ITrackParticleCreatorTool.h
ParticleTest.tp
tp
Definition: ParticleTest.py:25
xAODMaker::RecTrackParticleContainerCnvTool::convert
virtual StatusCode convert(const Rec::TrackParticleContainer *aod, xAOD::TrackParticleContainer *xaod, const xAOD::Vertex *vtx=nullptr) const override
Function that fills an existing xAOD::TrackParticleContainer.
Definition: RecTrackParticleContainerCnvTool.cxx:38
xAODMaker::RecTrackParticleContainerCnvTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition: RecTrackParticleContainerCnvTool.cxx:30
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::IRecTrackParticleContainerCnvTool
Definition: IRecTrackParticleContainerCnvTool.h:37
ObservedTrackMap
std::map< int, std::tuple< Trk::Track *, double, xAOD::RejectionStep, xAOD::RejectionReason, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, float, float, int, std::vector< xAOD::RejectionStep >, std::vector< xAOD::RejectionReason > > > ObservedTrackMap
Definition: ObservedTrackMap.h:50
xAODMaker::RecTrackParticleContainerCnvTool::createParticle
xAOD::TrackParticle * createParticle(xAOD::TrackParticleContainer *xaod, const Rec::TrackParticleContainer *container, const Rec::TrackParticle *tp) const
Definition: RecTrackParticleContainerCnvTool.cxx:72
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
xAODMaker::RecTrackParticleContainerCnvTool::convertAndAugment
virtual StatusCode convertAndAugment(const Rec::TrackParticleContainer *aod, xAOD::TrackParticleContainer *xaod, const ObservedTrackMap *trk_map, const xAOD::Vertex *vtx=nullptr) const override
Function that fills an existing xAOD::TrackParticleContainer and augments track particles.
Definition: RecTrackParticleContainerCnvTool.cxx:64
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
xAODMaker::RecTrackParticleContainerCnvTool::RecTrackParticleContainerCnvTool
RecTrackParticleContainerCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: RecTrackParticleContainerCnvTool.cxx:18
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
Rec::TrackParticle
Definition: Reconstruction/Particle/Particle/TrackParticle.h:47
xAODMaker::RecTrackParticleContainerCnvTool
Definition: RecTrackParticleContainerCnvTool.h:25
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
IRecTrackParticleContainerCnvTool.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
AthAlgTool
Definition: AthAlgTool.h:26
xAODMaker::RecTrackParticleContainerCnvTool::m_particleCreator
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
Definition: RecTrackParticleContainerCnvTool.h:47
xAODMaker::RecTrackParticleContainerCnvTool::setParticleCreatorTool
virtual StatusCode setParticleCreatorTool(ToolHandle< Trk::ITrackParticleCreatorTool > *tool) override
allow other algorithms to pass the tool in order to preserve initialisation
Definition: RecTrackParticleContainerCnvTool.cxx:80