ATLAS Offline Software
Loading...
Searching...
No Matches
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
15#include "Identifier/Identifier.h"
16#include "GaudiKernel/ToolHandle.h"
17
19
20#include <traccc/io/csv/cell.hpp>
21
22#include <unordered_map>
23#include <cstdint>
24
26
27namespace ActsTrk {
28
35
37{
39
40 StatusCode initialize();
41 StatusCode finalize();
42
44
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
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
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
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
Property holding a SG store/key/clid from which a WriteHandle is made.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
An algorithm that can be simultaneously executed in multiple threads.
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:69
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a WriteHandle is made.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
void sort_traccc_soa(traccc::edm::silicon_cell_collection::device &sorted_cells, traccc::edm::silicon_cell_collection::device const &cells)
std::unordered_map< uint64_t, unsigned int > m_DetrayIdToDetDescrIndexMap
ToolHandle< AthDevice::IMemoryResourceTool > m_deviceMR
const std::unordered_map< Identifier, uint64_t > * m_athenaToDetray
SG::WriteHandleKey< traccc::edm::silicon_cell_collection::buffer > m_tracccCellsKey
traccc::edm::silicon_cell_collection::buffer sortCells(vecmem::copy const &host_copy, traccc::edm::silicon_cell_collection::device const &cells) const
ToolHandle< AthDevice::ICopiesTool > m_copiesTool
ToolHandle< AthDevice::IMemoryResourceTool > m_hostMR
const traccc::detector_conditions_description::host * m_hostCond
StatusCode copyToGpuAndRecordToSG(EventContext const &ctx, traccc::edm::silicon_cell_collection::buffer const &cells) const
ServiceHandle< ActsTrk::IDeviceDetectorDescriptionProviderSvc > m_detDescSvc