ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
ITkPixelByteStreamCnv
src
cuda
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
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
#include "
ITkPixelDecodingTool.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
AthDeviceInterfaces/IMemoryResourcesTool.h
"
11
#include "
AthDeviceInterfaces/ICopiesTool.h
"
12
#include "
AthCUDAInterfaces/IStreamTool.h
"
13
#include "
ActsGPUEvent/GeometryIdMapping.h
"
14
#include "
ActsGPUEvent/TracccSiliconCellCollection.h
"
15
#include "itksw/pix/endec/intf/Options.hpp"
16
#include <Gaudi/Property.h>
17
#include <cstdint>
18
30
class
ITkPixelDecodingTracccCellsCUDAAlg
31
:
public
AthReentrantAlgorithm
32
{
33
public
:
34
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
35
StatusCode
initialize
()
override
;
36
StatusCode
execute
(
const
EventContext& ctx)
const override
;
37
38
private
:
39
ToolHandle<ITkPixelDecodingTool>
m_decodingTool
{
this
,
40
"PixelDecodingTool"
,
"ITkPixelDecodingTool"
,
"The decoding tool"
};
41
42
SG::WriteHandleKey<traccc::edm::silicon_cell_collection::buffer>
m_tracccCellsKey
{
this
,
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"
};
49
const
ActsTrk::GeometryIdMapping
*
m_geoIdMapping
{
nullptr
};
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
AthReentrantAlgorithm.h
IStreamTool.h
GeometryIdMapping.h
ICopiesTool.h
IMemoryResourcesTool.h
ITkPixelDecodingTool.h
TracccSiliconCellCollection.h
ActsTrk::GeometryIdMapping
Lookup table between the three surface-identifier "worlds" used across the ACTS / Detray / Athena tra...
Definition
GeometryIdMapping.h:31
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ITkPixelDecodingTracccCellsCUDAAlg
Decodes Pixel byte streams into Traccc cells hosted in GPU memory.
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:32
ITkPixelDecodingTracccCellsCUDAAlg::m_streamTool
ToolHandle< AthCUDA::IStreamTool > m_streamTool
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:55
ITkPixelDecodingTracccCellsCUDAAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
ITkPixelDecodingTracccCellsCUDAAlg.cxx:35
ITkPixelDecodingTracccCellsCUDAAlg::m_MRs
ToolHandle< AthDevice::IMemoryResourcesTool > m_MRs
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:51
ITkPixelDecodingTracccCellsCUDAAlg::m_geoIdMappingObjectName
Gaudi::Property< std::string > m_geoIdMappingObjectName
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:46
ITkPixelDecodingTracccCellsCUDAAlg::m_geoIdMapping
const ActsTrk::GeometryIdMapping * m_geoIdMapping
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:49
ITkPixelDecodingTracccCellsCUDAAlg::m_copies
ToolHandle< AthDevice::ICopiesTool > m_copies
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:53
ITkPixelDecodingTracccCellsCUDAAlg::m_tracccCellsKey
SG::WriteHandleKey< traccc::edm::silicon_cell_collection::buffer > m_tracccCellsKey
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:42
ITkPixelDecodingTracccCellsCUDAAlg::s_decodingOptions
static constexpr itksw::pix::endec::intf::Options s_decodingOptions
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:58
ITkPixelDecodingTracccCellsCUDAAlg::initialize
StatusCode initialize() override
Definition
ITkPixelDecodingTracccCellsCUDAAlg.cxx:23
ITkPixelDecodingTracccCellsCUDAAlg::moduleIdToDetrayIndex
StatusCode moduleIdToDetrayIndex(uint32_t module_id, uint32_t &detray_index) const
Definition
ITkPixelDecodingTracccCellsCUDAAlg.cxx:111
ITkPixelDecodingTracccCellsCUDAAlg::m_decodingTool
ToolHandle< ITkPixelDecodingTool > m_decodingTool
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:39
ITkPixelDecodingTracccCellsCUDAAlg::m_frameSize
const size_t m_frameSize
Definition
ITkPixelDecodingTracccCellsCUDAAlg.h:60
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.17.0