ATLAS Offline Software
Loading...
Searching...
No Matches
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
12#include "traccc/seeding/strip_spacepoint_formation_data.hpp"
13
14namespace ActsTrk {
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
41CONDCONT_DEF(ActsTrk::StripSpacepointConditions, 25292202);
42#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Read-only device inputs shared by events in the same alignment/topology IOV.
StripSpacepointConditions(std::unique_ptr< vecmem::memory_resource > resource, std::size_t surfaceCount, std::size_t ruleCount)
static vecmem::memory_resource & checkedResource(const std::unique_ptr< vecmem::memory_resource > &resource)
std::unique_ptr< vecmem::memory_resource > m_resource
traccc::strip_measurement_surface_info_collection_types::buffer surfaces
traccc::strip_pairing_rule_collection_types::buffer rules
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
STL namespace.