ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGPUEventCnv
src
TracccSeedConverterAlg.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 ACTSGPUEVENT_TRACCCSEEDCONVERTERALG_H
5
#define ACTSGPUEVENT_TRACCCSEEDCONVERTERALG_H
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
#include "
StoreGate/ReadHandleKey.h
"
9
#include "
StoreGate/WriteHandleKey.h
"
10
11
#include "
ActsGPUEvent/TracccSeedCollection.h
"
12
#include "
ActsGPUEvent/TracccSpacepointCollection.h
"
13
#include "
ActsEvent/SeedContainer.h
"
14
15
#include "
AthDeviceInterfaces/IMemoryResourceTool.h
"
16
#include "
AthDeviceInterfaces/ICopyTool.h
"
17
18
#include "
xAODInDetMeasurement/SpacePointContainer.h
"
19
#include "
xAODInDetMeasurement/SpacePointAuxContainer.h
"
20
21
#include "GaudiKernel/ToolHandle.h"
22
23
namespace
ActsTrk
{
24
38
class
TracccSeedConverterAlg
:
public
AthReentrantAlgorithm
39
{
40
public
:
41
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
42
44
virtual
StatusCode
initialize
()
override
;
46
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
48
virtual
StatusCode
finalize
()
override
;
49
50
private
:
51
54
SG::ReadHandleKey<xAOD::SpacePointContainer>
m_inputSPKey
{
55
this
,
"InputSpacepoints"
,
"TracccSpacepoints"
,
56
"Input traccc SP collection buffer"
};
57
SG::ReadHandleKey<traccc::edm::spacepoint_collection::buffer>
m_inputSPDeviceKey
{
58
this
,
"InputSpacepointsDevice"
,
"TracccSpacepointsDevice"
,
59
"Input traccc SP collection device buffer"
};
60
SG::ReadHandleKey<std::vector<unsigned int>
>
m_inputMeasToPixelSPKey
{
61
this
,
"InputMeasToPixelSP"
,
"TracccMeasToPixelSP"
,
62
"Input mapping from traccc measurement index to pixel spacepoint index"
};
63
SG::ReadHandleKey<traccc::edm::seed_collection::buffer>
m_inputSeedsKey
{
64
this
,
"InputSeeds"
,
"TracccSeeds"
,
65
"Input traccc seed collection buffer"
};
66
67
70
SG::WriteHandleKey<ActsTrk::SeedContainer>
m_outputSeedsKey
{
71
this
,
"OutputSeeds"
,
"ITkTracccSeeds"
,
72
"Output ACTS seeds container"
};
73
74
76
ToolHandle<AthDevice::IMemoryResourceTool>
m_hostMR
{
77
this
,
"HostMR"
,
""
,
"Host memory resource tool"
};
78
79
ToolHandle<AthDevice::ICopyTool>
m_copy
{
80
this
,
"CopyProviderTool"
,
""
,
"Vecmem copy provider tool"
};
81
84
mutable
std::atomic<int>
m_nSP
= 0;
85
mutable
std::atomic<int>
m_nSeeds
= 0;
87
88
};
89
90
}
// namespace ActsTrk
91
92
#endif
// ACTSGPUEVENT_TRACCCSEEDCONVERTERALG_H
AthReentrantAlgorithm.h
SpacePointContainer.h
ICopyTool.h
IMemoryResourceTool.h
SeedContainer.h
SpacePointAuxContainer.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.
TracccSeedCollection.h
TracccSpacepointCollection.h
ActsTrk::TracccSeedConverterAlg
Algorithm converting traccc seeds (device buffer) to ACTS seeds (host container).
Definition
TracccSeedConverterAlg.h:39
ActsTrk::TracccSeedConverterAlg::m_hostMR
ToolHandle< AthDevice::IMemoryResourceTool > m_hostMR
Definition
TracccSeedConverterAlg.h:76
ActsTrk::TracccSeedConverterAlg::m_copy
ToolHandle< AthDevice::ICopyTool > m_copy
Definition
TracccSeedConverterAlg.h:79
ActsTrk::TracccSeedConverterAlg::initialize
virtual StatusCode initialize() override
Function initializing the algorithm.
Definition
TracccSeedConverterAlg.cxx:13
ActsTrk::TracccSeedConverterAlg::m_nSP
std::atomic< int > m_nSP
The object counters for debug prints in finalize method {.
Definition
TracccSeedConverterAlg.h:84
ActsTrk::TracccSeedConverterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition
TracccSeedConverterAlg.cxx:32
ActsTrk::TracccSeedConverterAlg::m_inputSPKey
SG::ReadHandleKey< xAOD::SpacePointContainer > m_inputSPKey
Definition
TracccSeedConverterAlg.h:54
ActsTrk::TracccSeedConverterAlg::finalize
virtual StatusCode finalize() override
Function finalizing the algorthm.
Definition
TracccSeedConverterAlg.cxx:128
ActsTrk::TracccSeedConverterAlg::m_inputSPDeviceKey
SG::ReadHandleKey< traccc::edm::spacepoint_collection::buffer > m_inputSPDeviceKey
Definition
TracccSeedConverterAlg.h:57
ActsTrk::TracccSeedConverterAlg::m_inputSeedsKey
SG::ReadHandleKey< traccc::edm::seed_collection::buffer > m_inputSeedsKey
Definition
TracccSeedConverterAlg.h:63
ActsTrk::TracccSeedConverterAlg::m_nSeeds
std::atomic< int > m_nSeeds
Definition
TracccSeedConverterAlg.h:85
ActsTrk::TracccSeedConverterAlg::m_outputSeedsKey
SG::WriteHandleKey< ActsTrk::SeedContainer > m_outputSeedsKey
Definition
TracccSeedConverterAlg.h:70
ActsTrk::TracccSeedConverterAlg::m_inputMeasToPixelSPKey
SG::ReadHandleKey< std::vector< unsigned int > > m_inputMeasToPixelSPKey
Definition
TracccSeedConverterAlg.h:60
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
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0