ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGPUDataPreparation
src
hip
HIPSPFormationAlgProviderTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Local include(s).
6
#include "
HIPSPFormationAlgProviderTool.h
"
7
8
// Athena Acts include(s).
9
#include "
ActsInterop/Logger.h
"
10
11
// Traccc include(s).
12
#include "traccc/hip/seeding/silicon_pixel_spacepoint_formation_algorithm.hpp"
13
14
namespace
ActsTrk
{
15
16
StatusCode
HIPSPFormationAlgProviderTool::initialize
() {
17
18
ATH_MSG_DEBUG
(
"Initializing."
);
19
20
ATH_CHECK
(
m_MRs
.retrieve());
21
ATH_CHECK
(
m_copy
.retrieve());
22
ATH_CHECK
(
m_streamTool
.retrieve());
23
24
ATH_MSG_DEBUG
(
"Successfully initialized"
);
25
return
StatusCode::SUCCESS;
26
}
27
28
DeviceAlgorithmT<traccc::device::silicon_pixel_spacepoint_formation_algorithm>
29
HIPSPFormationAlgProviderTool::getAlgorithm
(
const
EventContext& ctx)
const
{
30
31
ATH_MSG_VERBOSE
(
32
"Constructing HIP traccc pixel spacepoint formation algorithm"
);
33
34
auto
copy =
m_copy
->copy(ctx);
35
36
return
{copy,
37
std::make_shared<
38
traccc::hip::silicon_pixel_spacepoint_formation_algorithm>(
39
traccc::memory_resource{
m_MRs
->mainMR(),
m_MRs
->hostMR()}, *copy,
40
traccc::hip::stream_wrapper{
m_streamTool
->stream(ctx)},
41
makeActsAthenaLogger
(
this
,
"TracccSPFormationHIP"
))};
42
}
43
44
}
// namespace ActsTrk
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x,...)
Definition
AthMsgStreamMacros.h:42
HIPSPFormationAlgProviderTool.h
Logger.h
makeActsAthenaLogger
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
Definition
Logger.cxx:64
ActsTrk::DeviceAlgorithmT
Convenience type for the "algorithm provider" tools.
Definition
DeviceAlgorithmT.h:15
ActsTrk::HIPSPFormationAlgProviderTool::m_copy
ToolHandle< AthDevice::ICopyTool > m_copy
Definition
HIPSPFormationAlgProviderTool.h:52
ActsTrk::HIPSPFormationAlgProviderTool::initialize
virtual StatusCode initialize() override
Function initializing the algorithm.
Definition
HIPSPFormationAlgProviderTool.cxx:16
ActsTrk::HIPSPFormationAlgProviderTool::m_MRs
ToolHandle< AthDevice::IMemoryResourcesTool > m_MRs
Definition
HIPSPFormationAlgProviderTool.h:47
ActsTrk::HIPSPFormationAlgProviderTool::m_streamTool
ToolHandle< AthHIP::IStreamTool > m_streamTool
Definition
HIPSPFormationAlgProviderTool.h:55
ActsTrk::HIPSPFormationAlgProviderTool::getAlgorithm
virtual DeviceAlgorithmT< traccc::device::silicon_pixel_spacepoint_formation_algorithm > getAlgorithm(const EventContext &ctx) const override
Function constructing the traccc hip clusterization algorithm.
Definition
HIPSPFormationAlgProviderTool.cxx:29
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