ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGPUEventCnv
src
RDOtoTracccCellConverterCommons.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_RDOTOTRACCCCELLCONVERTERCOMMONS_H
5
#define ACTSGPUEVENT_RDOTOTRACCCCELLCONVERTERCOMMONS_H
6
7
#include "
AthenaBaseComps/AthMessaging.h
"
8
#include "
StoreGate/WriteHandleKey.h
"
9
#include "
ActsGPUEvent/TracccSiliconCellCollection.h
"
10
#include "
ActsGPUEvent/TracccDetectorConditionsDescription.h
"
11
#include "
AthDeviceInterfaces/IMemoryResourceTool.h
"
12
#include "
AthDeviceInterfaces/ICopiesTool.h
"
13
#include "
InDetIdentifier/PixelID.h
"
14
#include "
InDetIdentifier/SCT_ID.h
"
15
#include "Identifier/Identifier.h"
16
#include "GaudiKernel/ToolHandle.h"
17
18
#include "
ActsGPUInterfaces/IDeviceDetectorDescriptionProviderSvc.h
"
19
20
#include <traccc/io/csv/cell.hpp>
21
22
#include <unordered_map>
23
#include <cstdint>
24
25
class
AthReentrantAlgorithm
;
26
27
namespace
ActsTrk
{
28
35
36
struct
RDOtoTracccCellConverterCommons
:
public
AthMessaging
37
{
38
RDOtoTracccCellConverterCommons
(
AthReentrantAlgorithm
& parent);
39
40
StatusCode
initialize
();
41
StatusCode
finalize
();
42
43
AthReentrantAlgorithm
&
m_parent
;
44
45
SG::WriteHandleKey<traccc::edm::silicon_cell_collection::buffer>
m_tracccCellsKey
;
46
47
mutable
std::atomic<int>
m_nPix
= 0;
48
mutable
std::atomic<int>
m_nStrip
= 0;
49
mutable
std::atomic<int>
m_nCells
= 0;
50
51
const
PixelID
*
m_pixelID
{
nullptr
};
52
const
SCT_ID
*
m_stripID
{
nullptr
};
53
54
ToolHandle<AthDevice::IMemoryResourceTool>
m_hostMR
;
55
ToolHandle<AthDevice::IMemoryResourceTool>
m_deviceMR
;
56
ToolHandle<AthDevice::ICopiesTool>
m_copiesTool
;
57
58
ServiceHandle<ActsTrk::IDeviceDetectorDescriptionProviderSvc>
m_detDescSvc
;
59
Gaudi::Property<std::string>
m_hostCondObjectName
;
60
const
traccc::detector_conditions_description::host*
m_hostCond
{
nullptr
};
61
62
// Geometry conversion maps
63
const
std::unordered_map<Identifier, uint64_t>*
m_athenaToDetray
{
nullptr
};
64
std::unordered_map<uint64_t, unsigned int>
m_DetrayIdToDetDescrIndexMap
{};
65
66
Gaudi::Property<bool>
m_CPUCellSorting
;
67
Gaudi::Property<bool>
m_UsePixelToTForCellActivation
;
68
69
// Returns the input cells sorted in a object setup with host_copy
70
traccc::edm::silicon_cell_collection::buffer
sortCells
(
71
vecmem::copy
const
& host_copy
72
, traccc::edm::silicon_cell_collection::device
const
& cells
73
)
const
;
74
StatusCode
copyToGpuAndRecordToSG
(
75
EventContext
const
& ctx
76
, traccc::edm::silicon_cell_collection::buffer
const
& cells
77
)
const
;
78
};
79
80
void
sort_traccc_soa
(
81
traccc::edm::silicon_cell_collection::device & sorted_cells
82
, traccc::edm::silicon_cell_collection::device
const
& cells
83
);
84
85
}
// namespace ActsTrk
86
87
#endif
AthMessaging.h
ICopiesTool.h
IDeviceDetectorDescriptionProviderSvc.h
IMemoryResourceTool.h
PixelID.h
This is an Identifier helper class for the Pixel subdetector.
SCT_ID.h
This is an Identifier helper class for the SCT subdetector.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TracccDetectorConditionsDescription.h
TracccSiliconCellCollection.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::sort_traccc_soa
void sort_traccc_soa(traccc::edm::silicon_cell_collection::device &sorted_cells, traccc::edm::silicon_cell_collection::device const &cells)
Definition
RDOtoTracccCellConverterCommons.cxx:100
ActsTrk::RDOtoTracccCellConverterCommons::m_DetrayIdToDetDescrIndexMap
std::unordered_map< uint64_t, unsigned int > m_DetrayIdToDetDescrIndexMap
Definition
RDOtoTracccCellConverterCommons.h:64
ActsTrk::RDOtoTracccCellConverterCommons::m_deviceMR
ToolHandle< AthDevice::IMemoryResourceTool > m_deviceMR
Definition
RDOtoTracccCellConverterCommons.h:55
ActsTrk::RDOtoTracccCellConverterCommons::m_CPUCellSorting
Gaudi::Property< bool > m_CPUCellSorting
Definition
RDOtoTracccCellConverterCommons.h:66
ActsTrk::RDOtoTracccCellConverterCommons::m_hostCondObjectName
Gaudi::Property< std::string > m_hostCondObjectName
Definition
RDOtoTracccCellConverterCommons.h:59
ActsTrk::RDOtoTracccCellConverterCommons::m_pixelID
const PixelID * m_pixelID
Definition
RDOtoTracccCellConverterCommons.h:51
ActsTrk::RDOtoTracccCellConverterCommons::RDOtoTracccCellConverterCommons
RDOtoTracccCellConverterCommons(AthReentrantAlgorithm &parent)
Definition
RDOtoTracccCellConverterCommons.cxx:17
ActsTrk::RDOtoTracccCellConverterCommons::m_stripID
const SCT_ID * m_stripID
Definition
RDOtoTracccCellConverterCommons.h:52
ActsTrk::RDOtoTracccCellConverterCommons::m_athenaToDetray
const std::unordered_map< Identifier, uint64_t > * m_athenaToDetray
Definition
RDOtoTracccCellConverterCommons.h:63
ActsTrk::RDOtoTracccCellConverterCommons::m_tracccCellsKey
SG::WriteHandleKey< traccc::edm::silicon_cell_collection::buffer > m_tracccCellsKey
Definition
RDOtoTracccCellConverterCommons.h:45
ActsTrk::RDOtoTracccCellConverterCommons::m_nPix
std::atomic< int > m_nPix
Definition
RDOtoTracccCellConverterCommons.h:47
ActsTrk::RDOtoTracccCellConverterCommons::m_nCells
std::atomic< int > m_nCells
Definition
RDOtoTracccCellConverterCommons.h:49
ActsTrk::RDOtoTracccCellConverterCommons::m_parent
AthReentrantAlgorithm & m_parent
Definition
RDOtoTracccCellConverterCommons.h:43
ActsTrk::RDOtoTracccCellConverterCommons::m_UsePixelToTForCellActivation
Gaudi::Property< bool > m_UsePixelToTForCellActivation
Definition
RDOtoTracccCellConverterCommons.h:67
ActsTrk::RDOtoTracccCellConverterCommons::finalize
StatusCode finalize()
Definition
RDOtoTracccCellConverterCommons.cxx:58
ActsTrk::RDOtoTracccCellConverterCommons::sortCells
traccc::edm::silicon_cell_collection::buffer sortCells(vecmem::copy const &host_copy, traccc::edm::silicon_cell_collection::device const &cells) const
Definition
RDOtoTracccCellConverterCommons.cxx:69
ActsTrk::RDOtoTracccCellConverterCommons::m_nStrip
std::atomic< int > m_nStrip
Definition
RDOtoTracccCellConverterCommons.h:48
ActsTrk::RDOtoTracccCellConverterCommons::m_copiesTool
ToolHandle< AthDevice::ICopiesTool > m_copiesTool
Definition
RDOtoTracccCellConverterCommons.h:56
ActsTrk::RDOtoTracccCellConverterCommons::m_hostMR
ToolHandle< AthDevice::IMemoryResourceTool > m_hostMR
Definition
RDOtoTracccCellConverterCommons.h:54
ActsTrk::RDOtoTracccCellConverterCommons::m_hostCond
const traccc::detector_conditions_description::host * m_hostCond
Definition
RDOtoTracccCellConverterCommons.h:60
ActsTrk::RDOtoTracccCellConverterCommons::copyToGpuAndRecordToSG
StatusCode copyToGpuAndRecordToSG(EventContext const &ctx, traccc::edm::silicon_cell_collection::buffer const &cells) const
Definition
RDOtoTracccCellConverterCommons.cxx:82
ActsTrk::RDOtoTracccCellConverterCommons::initialize
StatusCode initialize()
Definition
RDOtoTracccCellConverterCommons.cxx:35
ActsTrk::RDOtoTracccCellConverterCommons::m_detDescSvc
ServiceHandle< ActsTrk::IDeviceDetectorDescriptionProviderSvc > m_detDescSvc
Definition
RDOtoTracccCellConverterCommons.h:58
Generated on
for ATLAS Offline Software by
1.17.0