11#include "Acts/EventData/SourceLink.hpp"
12#include "Acts/Geometry/TrackingGeometry.hpp"
13#include "Acts/Surfaces/Surface.hpp"
38 : m_geometryId(gid), m_index(idx) {}
51 Acts::GeometryIdentifier
geometryId()
const {
return m_geometryId; }
54 Acts::GeometryIdentifier m_geometryId;
65 const Acts::Surface*
operator()(
const Acts::SourceLink& sourceLink)
const {
67 return geometry.findSurface(indexSourceLink.geometryId());
78 using Iterator = Acts::SourceLinkAdapterIterator<BaseIterator>;
81 std::pair<Iterator, Iterator>
range(
const Acts::Surface& surface)
const {
83 auto [begin, end] =
container->equal_range(surface.geometryId());
A source link that stores just an index.
Definition IndexSourceLink.hpp:32
IndexSourceLink(IndexSourceLink &&)=default
IndexSourceLink()=default
satisfy SourceLinkConcept.
friend bool operator==(const IndexSourceLink &lhs, const IndexSourceLink &rhs)
Definition IndexSourceLink.hpp:57
Acts::GeometryIdentifier geometryId() const
Definition IndexSourceLink.hpp:51
IndexSourceLink(const IndexSourceLink &)=default
constexpr ActsExamples::Index index() const
Access the index.
Definition IndexSourceLink.hpp:49
IndexSourceLink & operator=(IndexSourceLink &&)=default
IndexSourceLink & operator=(const IndexSourceLink &)=default
IndexSourceLinkSurfaceAccessor SurfaceAccessor
Definition IndexSourceLink.hpp:34
constexpr IndexSourceLink(Acts::GeometryIdentifier gid, ActsExamples::Index idx)
Construct from geometry identifier and index.
Definition IndexSourceLink.hpp:37
std::uint32_t Index
Index type to reference elements in a container.
Definition Index.hpp:22
Definition fit_seed.cpp:16
The accessor for the GeometryIdMultiset container.
Definition GeometryContainers.hpp:142
typename GeometryIdMultiset< T >::const_iterator Iterator
Definition GeometryContainers.hpp:146
const Container * container
Definition GeometryContainers.hpp:149
Accessor for the above source link container.
Definition IndexSourceLink.hpp:75
Acts::SourceLinkAdapterIterator< BaseIterator > Iterator
Definition IndexSourceLink.hpp:78
ActsExamples::GeometryIdMultisetAccessor< IndexSourceLink >::Iterator BaseIterator
Definition IndexSourceLink.hpp:76
std::pair< Iterator, Iterator > range(const Acts::Surface &surface) const
Definition IndexSourceLink.hpp:81
Definition IndexSourceLink.hpp:62
const Acts::Surface * operator()(const Acts::SourceLink &sourceLink) const
Definition IndexSourceLink.hpp:65
const Acts::TrackingGeometry & geometry
Definition IndexSourceLink.hpp:63