ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHIP
src
AthExHIP/src/TrackParticleCalibratorExampleAlg.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
//
3
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
//
5
#ifndef ATHEXHIP_TRACKPARTICLECALIBRATOREXAMPLEALG_H
6
#define ATHEXHIP_TRACKPARTICLECALIBRATOREXAMPLEALG_H
7
8
// Framework include(s).
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "GaudiKernel/ToolHandle.h"
11
#include "
StoreGate/ReadHandleKey.h
"
12
#include "
StoreGate/WriteHandleKey.h
"
13
14
// Device include(s).
15
#include "
AthDeviceInterfaces/ICopiesTool.h
"
16
#include "
AthDeviceInterfaces/IMemoryResourcesTool.h
"
17
#include "
AthHIPInterfaces/IStreamTool.h
"
18
19
// xAOD include(s).
20
#include "
xAODTracking/TrackParticleContainer.h
"
21
22
// Traccc include(s).
23
#include <traccc/edm/track_collection.hpp>
24
25
namespace
AthHIPExamples
{
26
34
class
TrackParticleCalibratorExampleAlg
:
public
AthReentrantAlgorithm
{
35
36
public
:
37
// Inherit the base class's constructor(s).
38
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
39
42
44
virtual
StatusCode
initialize
()
override
;
45
47
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
48
50
51
private
:
54
56
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_inputKey
{
57
this
,
"InputContainer"
,
"InDetTrackParticles"
,
58
"The input track particle container"
};
59
60
SG::WriteHandleKey<xAOD::TrackParticleContainer>
m_outputKey
{
61
this
,
"OutputContainer"
,
"CalibratedInDetTrackParticles"
,
62
"The output track particle container"
};
63
65
ToolHandle<AthDevice::IMemoryResourcesTool>
m_mrTool
{
66
this
,
"MemoryResourcesTool"
,
""
,
67
"Tool providing the memory resource(s) to use"
};
68
70
ToolHandle<AthDevice::ICopiesTool>
m_copyTool
{
71
this
,
"CopiesTool"
,
""
,
72
"Tool providing the vecmem::copy object(s) to use"
};
73
75
ToolHandle<AthHIP::IStreamTool>
m_streamTool
{
this
,
"StreamTool"
,
""
,
76
"The stream tool to use"
};
77
79
80
};
// class LinearTransformTaskExampleAlg
81
82
}
// namespace AthHIPExamples
83
84
#endif
// ATHEXHIP_TRACKPARTICLECALIBRATOREXAMPLEALG_H
AthReentrantAlgorithm.h
IStreamTool.h
TrackParticleContainer.h
ICopiesTool.h
IMemoryResourcesTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthHIPExamples::TrackParticleCalibratorExampleAlg
Example algorithm performing "track particle calibration".
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:34
AthHIPExamples::TrackParticleCalibratorExampleAlg::m_copyTool
ToolHandle< AthDevice::ICopiesTool > m_copyTool
Host copy tool to use.
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:70
AthHIPExamples::TrackParticleCalibratorExampleAlg::m_streamTool
ToolHandle< AthHIP::IStreamTool > m_streamTool
Stream tool to use.
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:75
AthHIPExamples::TrackParticleCalibratorExampleAlg::m_outputKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputKey
The output container.
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:60
AthHIPExamples::TrackParticleCalibratorExampleAlg::m_inputKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputKey
The input container.
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:56
AthHIPExamples::TrackParticleCalibratorExampleAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
AthHIPExamples::TrackParticleCalibratorExampleAlg::m_mrTool
ToolHandle< AthDevice::IMemoryResourcesTool > m_mrTool
Host memory resource tool to use.
Definition
AthExHIP/src/TrackParticleCalibratorExampleAlg.h:65
AthHIPExamples::TrackParticleCalibratorExampleAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
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
AthHIPExamples
Definition
DeviceStateHandler.h:20
Generated on
for ATLAS Offline Software by
1.17.0