2#ifndef ACTSTRKEVENT_GEOMETRYIDMAPPING_H
3#define ACTSTRKEVENT_GEOMETRYIDMAPPING_H
5#include "Identifier/Identifier.h"
10#include <unordered_map>
51 std::optional<Identifier> athenaId = std::nullopt) {
57 if (athenaId.has_value()) {
66 if (ath_opt.has_value()) {
76 : std::optional{it->second};
81 : std::optional{it->second};
95 : std::optional{it->second};
117 const std::unordered_map<detray_id_type, Identifier::value_type>&
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Lookup table between the three surface-identifier "worlds" used across the ACTS / Detray / Athena tra...
std::unordered_map< acts_id_type, detray_id_type > m_actsToDetray
std::optional< acts_id_type > detrayToActs(detray_id_type detrayId) const
std::unordered_map< detray_id_type, Identifier::value_type > m_detrayToAthena
std::uint64_t acts_id_type
std::optional< size_t > athenaToDetDescIndex(const Identifier &athenaId) const
std::unordered_map< detray_id_type, size_t > m_detrayToDetDescIndex
const std::unordered_map< detray_id_type, Identifier::value_type > & detrayToAthenaMap() const
std::optional< detray_id_type > actsToDetray(acts_id_type actsId) const
std::optional< acts_id_type > athenaToActs(const Identifier &athenaId) const
std::unordered_map< detray_id_type, acts_id_type > m_detrayToActs
std::optional< Identifier > detrayToAthena(detray_id_type detrayId) const
std::optional< Identifier > actsToAthena(acts_id_type actsId) const
std::optional< size_t > detrayToDetDescIndex(detray_id_type detray_id) const
std::unordered_map< Identifier::value_type, detray_id_type > m_athenaToDetDescIndex
void addDetDescIndex(detray_id_type detray_id, unsigned int index)
std::optional< detray_id_type > athenaToDetray(const Identifier &athenaId) const
std::unordered_map< Identifier::value_type, detray_id_type > m_athenaToDetray
std::uint64_t detray_id_type
void reserve(std::size_t nSurfaces)
Reserve storage for nSurfaces detray surfaces.
GeometryIdMapping()=default
void addEntry(detray_id_type detrayId, acts_id_type actsId, std::optional< Identifier > athenaId=std::nullopt)
Register one detray surface, it has to have a corresponding ACTS surface athenaId is optional,...
value_type get_compact() const
Get the compact id.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...