Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
WritexAOD.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef ATHEXBASICS_WRITEXAOD_H
11 #define ATHEXBASICS_WRITEXAOD_H
12 
13 #include <atomic>
14 
16 #include "GaudiKernel/ToolHandle.h"
20 
22  public:
23  using AthReentrantAlgorithm::AthReentrantAlgorithm;
24 
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute(const EventContext& ctx) const override;
27 
28  private:
30  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackKey{this, "TrackParticlesKey", "InDetTrackParticles"};
32  SG::WriteHandleKey<xAOD::TrackParticleContainer> m_newKey{this, "NewTrackParticlesKey", "InDetTrackParticles"};
34  ToolHandle<InDet::IInDetTrackSelectionTool> m_trackSelectionTool{this, "TrackSelectionTool", "InDetTrackSelectionTool", "Tool for selecting tracks"};
35 };
36 
37 #endif
WritexAOD::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: WritexAOD.cxx:18
WritexAOD
Algorithm demonstrating writing of xAOD containers.
Definition: WritexAOD.h:21
WritexAOD::m_trackSelectionTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool *‍/.
Definition: WritexAOD.h:34
SG::ReadHandleKey< xAOD::TrackParticleContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
WritexAOD::m_newKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_newKey
Read handle for the new track container **‍/.
Definition: WritexAOD.h:32
SG::WriteHandleKey< xAOD::TrackParticleContainer >
TrackParticleAuxContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IInDetTrackSelectionTool.h
AthReentrantAlgorithm.h
WritexAOD::m_trackKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Read handle for the offline object container - set to tracks by default. **‍/.
Definition: WritexAOD.h:30
WritexAOD::initialize
virtual StatusCode initialize() override
Definition: WritexAOD.cxx:7
TrackParticleContainer.h