ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExBasics
src
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
15
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
16
#include "GaudiKernel/ToolHandle.h"
17
#include "
InDetTrackSelectionTool/IInDetTrackSelectionTool.h
"
18
#include "
xAODTracking/TrackParticleContainer.h
"
19
#include "
xAODTracking/TrackParticleAuxContainer.h
"
20
21
class
WritexAOD
:
public
AthReentrantAlgorithm
{
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
AthReentrantAlgorithm.h
TrackParticleContainer.h
IInDetTrackSelectionTool.h
TrackParticleAuxContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
WritexAOD
Algorithm demonstrating writing of xAOD containers.
Definition
WritexAOD.h:21
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::m_newKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_newKey
Read handle for the new track container **/.
Definition
WritexAOD.h:32
WritexAOD::initialize
virtual StatusCode initialize() override
Definition
WritexAOD.cxx:7
WritexAOD::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
WritexAOD.cxx:18
WritexAOD::m_trackSelectionTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Tool handle for the track selection tool */.
Definition
WritexAOD.h:34
Generated on
for ATLAS Offline Software by
1.17.0