This struct contains the components common to RDOtoTracccCellConverterAlg and PhaseIIRDOtoTracccCellConverterAlg.
More...
#include <RDOtoTracccCellConverterCommons.h>
|
| std::string | m_nm |
| | Message source name.
|
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| | MsgStream instance (a std::cout like with print-out levels).
|
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| | MessageSvc pointer.
|
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| | Current logging level.
|
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| | Messaging initialized (initMessaging).
|
This struct contains the components common to RDOtoTracccCellConverterAlg and PhaseIIRDOtoTracccCellConverterAlg.
Output key, copy objects, memory resources, detector descriptions and conditions, athena to detray conversion maps, ...
Definition at line 36 of file RDOtoTracccCellConverterCommons.h.
◆ RDOtoTracccCellConverterCommons()
| ActsTrk::RDOtoTracccCellConverterCommons::RDOtoTracccCellConverterCommons |
( |
AthReentrantAlgorithm & | parent | ) |
|
Definition at line 17 of file RDOtoTracccCellConverterCommons.cxx.
22 ,
m_hostMR{&
parent,
"HostMR",
"",
"The host memory resource tool to use"}
23 ,
m_deviceMR{&
parent,
"DeviceMR",
"",
"The device memory resource tool to use"}
24 ,
m_copiesTool{&
parent,
"CopiesTool",
"",
"Tool that provides host and device copy objects"}
25 ,
m_detDescSvc{&
parent,
"DetectorDescriptionSvc",
"ActsTrk::JSONDeviceDetectorDescriptionProviderSvc"}
27 "Traccc host conditions object"}
29 "Whether to sort traccc cells on CPU or GPU"}
31 "Use Pixel hit time over threshold value to set traccc cell activation value, otherwise defaults to 1"}
32{
33}
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
ToolHandle< AthDevice::IMemoryResourceTool > m_deviceMR
Gaudi::Property< bool > m_CPUCellSorting
Gaudi::Property< std::string > m_hostCondObjectName
SG::WriteHandleKey< traccc::edm::silicon_cell_collection::buffer > m_tracccCellsKey
AthReentrantAlgorithm & m_parent
Gaudi::Property< bool > m_UsePixelToTForCellActivation
ToolHandle< AthDevice::ICopiesTool > m_copiesTool
ToolHandle< AthDevice::IMemoryResourceTool > m_hostMR
ServiceHandle< ActsTrk::IDeviceDetectorDescriptionProviderSvc > m_detDescSvc
◆ copyToGpuAndRecordToSG()
| StatusCode ActsTrk::RDOtoTracccCellConverterCommons::copyToGpuAndRecordToSG |
( |
EventContext const & | ctx, |
|
|
traccc::edm::silicon_cell_collection::buffer const & | cells ) const |
Definition at line 82 of file RDOtoTracccCellConverterCommons.cxx.
86{
88 auto traccc_cells_gpu_buffer = std::make_unique<traccc::edm::silicon_cell_collection::buffer>(
90
91
92 device_copy->setup(*traccc_cells_gpu_buffer)->ignore();
93 (*device_copy)(
cells, *traccc_cells_gpu_buffer)->wait();
94
96 ATH_CHECK(outputTracccCells.record(std::move(traccc_cells_gpu_buffer)));
97 return StatusCode::SUCCESS;
98}
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
◆ finalize()
| StatusCode ActsTrk::RDOtoTracccCellConverterCommons::finalize |
( |
| ) |
|
Definition at line 58 of file RDOtoTracccCellConverterCommons.cxx.
59{
60
61
63 <<
", total number of strip hits = " <<
m_nStrip
64 <<
" and created total number of traccc cells = " <<
m_nCells
65 );
66 return StatusCode::SUCCESS;
67}
std::atomic< int > m_nPix
std::atomic< int > m_nCells
std::atomic< int > m_nStrip
◆ initialize()
| StatusCode ActsTrk::RDOtoTracccCellConverterCommons::initialize |
( |
| ) |
|
Definition at line 35 of file RDOtoTracccCellConverterCommons.cxx.
36{
39
43
46
49 for (
unsigned int i = 0;
i < gids.size(); ++
i) {
51 }
54
55 return StatusCode::SUCCESS;
56}
std::unordered_map< uint64_t, unsigned int > m_DetrayIdToDetDescrIndexMap
const PixelID * m_pixelID
const std::unordered_map< Identifier, uint64_t > * m_athenaToDetray
const traccc::detector_conditions_description::host * m_hostCond
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 167 of file AthMessaging.h.
168{
170 if (!ms) {
174 }
175
178}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels).
void initMessaging() const
Initialize our message level and MessageSvc.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 182 of file AthMessaging.h.
183{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
152{
153
154
156
159 return true;
160 } else {
161 return false;
162 }
163}
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ sortCells()
| traccc::edm::silicon_cell_collection::buffer ActsTrk::RDOtoTracccCellConverterCommons::sortCells |
( |
vecmem::copy const & | host_copy, |
|
|
traccc::edm::silicon_cell_collection::device const & | cells ) const |
Definition at line 69 of file RDOtoTracccCellConverterCommons.cxx.
73{
74 traccc::edm::silicon_cell_collection::buffer sorted_cells_host_buffer{
76 host_copy.setup(sorted_cells_host_buffer)->wait();
77 traccc::edm::silicon_cell_collection::device sorted_cells{sorted_cells_host_buffer};
79 return sorted_cells_host_buffer;
80}
void sort_traccc_soa(traccc::edm::silicon_cell_collection::device &sorted_cells, traccc::edm::silicon_cell_collection::device const &cells)
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
◆ m_athenaToDetray
| const std::unordered_map<Identifier, uint64_t>* ActsTrk::RDOtoTracccCellConverterCommons::m_athenaToDetray {nullptr} |
◆ m_copiesTool
◆ m_CPUCellSorting
| Gaudi::Property<bool> ActsTrk::RDOtoTracccCellConverterCommons::m_CPUCellSorting |
◆ m_detDescSvc
◆ m_DetrayIdToDetDescrIndexMap
| std::unordered_map<uint64_t, unsigned int> ActsTrk::RDOtoTracccCellConverterCommons::m_DetrayIdToDetDescrIndexMap {} |
◆ m_deviceMR
◆ m_hostCond
| const traccc::detector_conditions_description::host* ActsTrk::RDOtoTracccCellConverterCommons::m_hostCond {nullptr} |
◆ m_hostCondObjectName
| Gaudi::Property<std::string> ActsTrk::RDOtoTracccCellConverterCommons::m_hostCondObjectName |
◆ m_hostMR
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels).
Definition at line 132 of file AthMessaging.h.
◆ m_nCells
| std::atomic<int> ActsTrk::RDOtoTracccCellConverterCommons::m_nCells = 0 |
|
mutable |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nPix
| std::atomic<int> ActsTrk::RDOtoTracccCellConverterCommons::m_nPix = 0 |
|
mutable |
◆ m_nStrip
| std::atomic<int> ActsTrk::RDOtoTracccCellConverterCommons::m_nStrip = 0 |
|
mutable |
◆ m_parent
◆ m_pixelID
| const PixelID* ActsTrk::RDOtoTracccCellConverterCommons::m_pixelID {nullptr} |
◆ m_stripID
| const SCT_ID* ActsTrk::RDOtoTracccCellConverterCommons::m_stripID {nullptr} |
◆ m_tracccCellsKey
| SG::WriteHandleKey<traccc::edm::silicon_cell_collection::buffer> ActsTrk::RDOtoTracccCellConverterCommons::m_tracccCellsKey |
◆ m_UsePixelToTForCellActivation
| Gaudi::Property<bool> ActsTrk::RDOtoTracccCellConverterCommons::m_UsePixelToTForCellActivation |
The documentation for this struct was generated from the following files: