ATLAS Offline Software
Loading...
Searching...
No Matches
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 ATHEXCUDA_TRACKPARTICLECALIBRATOREXAMPLEALG_H
6#define ATHEXCUDA_TRACKPARTICLECALIBRATOREXAMPLEALG_H
7
8// Local include(s).
10
11// Framework include(s).
13#include "GaudiKernel/ToolHandle.h"
16
17// Device include(s).
19
20// xAOD include(s).
22
23namespace AthCUDAExamples {
24
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
57 this, "InputContainer", "InDetTrackParticles",
58 "The input track particle container"};
59
61 this, "OutputContainer", "CalibratedInDetTrackParticles",
62 "The output track particle container"};
63
65 ToolHandle<AthDevice::IMemoryResourceTool> m_hostMR{
66 this, "HostMR", "", "The host memory resource tool to use"};
67
68 ToolHandle<AthDevice::IMemoryResourceTool> m_deviceMR{
69 this, "DeviceMR", "", "The device memory resource tool to use"};
70
72
73}; // class LinearTransformTaskExampleAlg
74
76StatusCode calibrateOnGPU(const TrackParticleContainer::const_view& input,
77 TrackParticleContainer::view& output);
78
79} // namespace AthCUDAExamples
80
81#endif // ATHEXCUDA_TRACKPARTICLECALIBRATOREXAMPLEALG_H
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.
Example algorithm performing "track particle calibration".
ToolHandle< AthDevice::IMemoryResourceTool > m_deviceMR
Device memory resource tool to use.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
ToolHandle< AthDevice::IMemoryResourceTool > m_hostMR
Host memory resource tool to use.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputKey
The input container.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputKey
The output container.
virtual StatusCode initialize() override
Function initialising the algorithm.
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.
StatusCode calibrateOnGPU(const TrackParticleContainer::const_view &input, TrackParticleContainer::view &output)
Perform the transformation on an NVIDIA GPU.