ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixelDecodingTracccCellsCUDAAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef ITKPIXEL_DECODINGTRACCCCELLS_CUDA_ALG_H
5#define ITKPIXEL_DECODINGTRACCCCELLS_CUDA_ALG_H
6
9#include "GaudiKernel/ToolHandle.h"
15#include "itksw/pix/endec/intf/Options.hpp"
16#include <Gaudi/Property.h>
17#include <cstdint>
18
32{
33public:
34 using AthReentrantAlgorithm::AthReentrantAlgorithm;
35 StatusCode initialize() override;
36 StatusCode execute(const EventContext& ctx) const override;
37
38private:
39 ToolHandle<ITkPixelDecodingTool> m_decodingTool{this,
40 "PixelDecodingTool", "ITkPixelDecodingTool", "The decoding tool"};
41
43 "TracccCells", "", "Output traccc cell collection buffer"};
44
45 // Conversion of IDs between Athena, Acts, and Detray
46 Gaudi::Property<std::string> m_geoIdMappingObjectName{
47 this, "GeoIdMappingObjectName", "",
48 "Detray/Acts/Athena geometry ID mapping"};
50
51 ToolHandle<AthDevice::IMemoryResourcesTool> m_MRs{this,
52 "MemoryResources", "", "Athena device memory resources"};
53 ToolHandle<AthDevice::ICopiesTool> m_copies{this,
54 "CopiesTool", "", "Athena device copy tool"};
55 ToolHandle<AthCUDA::IStreamTool> m_streamTool{this,
56 "StreamTool", "", "Athena CUDA stream tool"};
57
58 static constexpr itksw::pix::endec::intf::Options s_decodingOptions{
59 .en_eos = false};
60 const size_t m_frameSize{static_cast<size_t>(64 -
61 itksw::pix::endec::intf::reserved_bits(s_decodingOptions))};
62 StatusCode moduleIdToDetrayIndex(uint32_t module_id, uint32_t & detray_index) const;
63};
64
65#endif // ITKPIXEL_DECODINGTRACCCCELLS_CUDA_ALG_H
Lookup table between the three surface-identifier "worlds" used across the ACTS / Detray / Athena tra...
An algorithm that can be simultaneously executed in multiple threads.
Decodes Pixel byte streams into Traccc cells hosted in GPU memory.
ToolHandle< AthCUDA::IStreamTool > m_streamTool
StatusCode execute(const EventContext &ctx) const override
ToolHandle< AthDevice::IMemoryResourcesTool > m_MRs
Gaudi::Property< std::string > m_geoIdMappingObjectName
const ActsTrk::GeometryIdMapping * m_geoIdMapping
ToolHandle< AthDevice::ICopiesTool > m_copies
SG::WriteHandleKey< traccc::edm::silicon_cell_collection::buffer > m_tracccCellsKey
static constexpr itksw::pix::endec::intf::Options s_decodingOptions
StatusCode moduleIdToDetrayIndex(uint32_t module_id, uint32_t &detray_index) const
ToolHandle< ITkPixelDecodingTool > m_decodingTool
Property holding a SG store/key/clid from which a WriteHandle is made.