ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
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
An algorithm that can be simultaneously executed in multiple threads.
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.
Algorithm demonstrating writing of xAOD containers.
Definition WritexAOD.h:21
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackKey
Read handle for the offline object container - set to tracks by default. **‍/.
Definition WritexAOD.h:30
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_newKey
Read handle for the new track container **‍/.
Definition WritexAOD.h:32
virtual StatusCode initialize() override
Definition WritexAOD.cxx:7
virtual StatusCode execute(const EventContext &ctx) const override
Definition WritexAOD.cxx:18
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool *‍/.
Definition WritexAOD.h:34