ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGPUDataPreparation
src
StripSpacepointConditions.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 ACTSGPUDATAPREPARATION_STRIPSPACEPOINTCONDITIONS_H
5
#define ACTSGPUDATAPREPARATION_STRIPSPACEPOINTCONDITIONS_H
6
7
#include <memory>
8
#include <stdexcept>
9
10
#include "
AthenaKernel/CLASS_DEF.h
"
11
#include "
AthenaKernel/CondCont.h
"
12
#include "traccc/seeding/strip_spacepoint_formation_data.hpp"
13
14
namespace
ActsTrk
{
18
class
StripSpacepointConditions
{
19
private
:
20
static
vecmem::memory_resource&
checkedResource
(
21
const
std::unique_ptr<vecmem::memory_resource>& resource) {
22
if
(!resource)
23
throw
std::invalid_argument(
"Missing Strip SP conditions allocator"
);
24
return
*resource;
25
}
26
// Declared first: buffers must be destroyed before their allocator.
27
std::unique_ptr<vecmem::memory_resource>
m_resource
;
28
29
public
:
30
StripSpacepointConditions
(std::unique_ptr<vecmem::memory_resource> resource,
31
std::size_t surfaceCount, std::size_t ruleCount)
32
:
m_resource
(
std
::move(resource)),
33
surfaces
(surfaceCount,
checkedResource
(
m_resource
)),
34
rules
(ruleCount,
checkedResource
(
m_resource
)) {}
35
36
traccc::strip_measurement_surface_info_collection_types::buffer
surfaces
;
37
traccc::strip_pairing_rule_collection_types::buffer
rules
;
38
};
39
}
// namespace ActsTrk
40
CLASS_DEF
(
ActsTrk::StripSpacepointConditions
, 98063622, 1)
41
CONDCONT_DEF
(
ActsTrk
::StripSpacepointConditions, 25292202);
42
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
ActsTrk::StripSpacepointConditions
Read-only device inputs shared by events in the same alignment/topology IOV.
Definition
StripSpacepointConditions.h:18
ActsTrk::StripSpacepointConditions::StripSpacepointConditions
StripSpacepointConditions(std::unique_ptr< vecmem::memory_resource > resource, std::size_t surfaceCount, std::size_t ruleCount)
Definition
StripSpacepointConditions.h:30
ActsTrk::StripSpacepointConditions::checkedResource
static vecmem::memory_resource & checkedResource(const std::unique_ptr< vecmem::memory_resource > &resource)
Definition
StripSpacepointConditions.h:20
ActsTrk::StripSpacepointConditions::m_resource
std::unique_ptr< vecmem::memory_resource > m_resource
Definition
StripSpacepointConditions.h:27
ActsTrk::StripSpacepointConditions::surfaces
traccc::strip_measurement_surface_info_collection_types::buffer surfaces
Definition
StripSpacepointConditions.h:36
ActsTrk::StripSpacepointConditions::rules
traccc::strip_pairing_rule_collection_types::buffer rules
Definition
StripSpacepointConditions.h:37
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0