ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SpacePointContainer2 Class Reference

A container for space points, which can hold additional columns of data and allows for efficient access to space points and their associated source links. More...

#include <Acts/EventData/SpacePointContainer2.hpp>

Classes

class  Range
class  Subset

Public Types

using const_iterator = Iterator<true>
 Type alias for const iterator over space points.
using ConstProxy = ConstSpacePointProxy2
 Type alias for const space point proxy.
using ConstRange = Range<true>
 Type alias for const range of space points.
using ConstSubset = Subset<true>
 Type alias for const subset of space points.
using Index = SpacePointIndex2
 Type alias for space point index in container.
using IndexRange = SpacePointIndexRange2
 Type alias for range of space point indices.
using IndexSubset = SpacePointIndexSubset2
 Type alias for subset of space point indices.
template<bool read_only>
using Iterator
 Type alias for template iterator over space points in container.
using iterator = Iterator<false>
 Type alias for mutable iterator over space points.
using MutableProxy = MutableSpacePointProxy2
 Type alias for mutable space point proxy.
using MutableRange = Range<false>
 Type alias for mutable range of space points.
using MutableSubset = Subset<false>
 Type alias for mutable subset of space points.

Public Member Functions

 SpacePointContainer2 (const SpacePointContainer2 &other) noexcept
 Constructs a copy of the given space point container.
 SpacePointContainer2 (SpacePointColumns columns=SpacePointColumns::None) noexcept
 Constructs and empty space point container.
 SpacePointContainer2 (SpacePointContainer2 &&other) noexcept
 Move constructs a space point container.
 ~SpacePointContainer2 () noexcept=default
 Detructs the space point container.
void assignSourceLinks (Index index, std::span< const SourceLink > sourceLinks)
 Assigns source links to the space point at the given index.
MutableProxy at (Index index)
 Returns a mutable proxy to the space point at the given index.
ConstProxy at (Index index) const
 Returns a const proxy to the space point at the given index.
const_iterator begin () const noexcept
 Returns const iterator to the beginning of the container.
iterator begin () noexcept
 Returns mutable iterator to the beginning of the container.
const std::array< float, 3 > & bottomStripVector (Index index) const noexcept
 Const access to the bottom strip vector of the space point at the given index.
std::array< float, 3 > & bottomStripVector (Index index) noexcept
 Mutable access to the bottom strip vector of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 3 > > bottomStripVectorColumn () const noexcept
 Returns a const proxy to the bottom strip vector column.
MutableSpacePointColumnProxy< std::array< float, 3 > > bottomStripVectorColumn () noexcept
 Returns a mutable proxy to the bottom strip vector column.
void clear () noexcept
 Clears the container, removing all space points and columns.
template<typename T>
ConstSpacePointColumnProxy< T > column (const std::string &name) const
 Returns a mutable reference to the Column with the given name.
SpacePointIndex2 copyFromIndex (Index index) const noexcept
 Const access to the copy from index of the space point at the given index.
SpacePointIndex2copyFromIndex (Index index) noexcept
 Mutable access to the copy from index of the space point at the given index.
ConstSpacePointColumnProxy< SpacePointIndex2copyFromIndexColumn () const noexcept
 Returns a const proxy to the copy from index column.
MutableSpacePointColumnProxy< SpacePointIndex2copyFromIndexColumn () noexcept
 Returns a mutable proxy to the copy from index column.
template<typename T>
MutableSpacePointColumnProxy< T > createColumn (const std::string &name)
 Creates a new column with the given name.
void createColumns (SpacePointColumns columns) noexcept
 Creates additional columns.
MutableProxy createSpacePoint () noexcept
 Creates a new space point at the end of the container.
void dropColumn (const std::string &name)
 Drops the column with the given name.
void dropColumns (SpacePointColumns columns) noexcept
 Drops the specified columns from the container.
bool empty () const noexcept
 Checks if the container is empty.
const_iterator end () const noexcept
 Returns const iterator to the end of the container.
iterator end () noexcept
 Returns mutable iterator to the end of the container.
bool hasColumn (const std::string &name) const noexcept
 Checks if an Column with the given name exists.
bool hasColumns (SpacePointColumns columns) const noexcept
 Checks if the container has the given Columns.
SpacePointContainer2operator= (const SpacePointContainer2 &other) noexcept
 Assignment operator for copying a space point container.
SpacePointContainer2operator= (SpacePointContainer2 &&other) noexcept
 Move assignment operator for a space point container.
ConstProxy operator[] (Index index) const noexcept
 Returns a const proxy to the space point at the given index.
MutableProxy operator[] (Index index) noexcept
 Returns a mutable proxy to the space point at the given index.
float phi (Index index) const noexcept
 Const access to the phi coordinate of the space point at the given index.
float & phi (Index index) noexcept
 Mutable access to the phi coordinate of the space point at the given index.
ConstSpacePointColumnProxy< float > phiColumn () const noexcept
 Returns a const proxy to the phi coordinate column.
MutableSpacePointColumnProxy< float > phiColumn () noexcept
 Returns a mutable proxy to the phi coordinate column.
float r (Index index) const noexcept
 Const access to the r coordinate of the space point at the given index.
float & r (Index index) noexcept
 Mutable access to the r coordinate of the space point at the given index.
ConstRange range (const IndexRange &range) const noexcept
 Creates a range of space points from the given index range.
MutableRange range (const IndexRange &range) noexcept
 Creates a range of space points from the given index range.
ConstSpacePointColumnProxy< float > rColumn () const noexcept
 Returns a const proxy to the r coordinate column.
MutableSpacePointColumnProxy< float > rColumn () noexcept
 Returns a mutable proxy to the r coordinate column.
void reserve (std::uint32_t size, float averageSourceLinks=1) noexcept
 Reserves space for the given number of space points.
SpacePointIndex2 resolvedIndex (Index index) const noexcept
 Resolves the index to the actual index in the container.
std::uint32_t size () const noexcept
 Returns the number of space points in the container.
std::span< SourceLinksourceLinks (Index index)
 Mutable access to the source links at the given index.
std::span< const SourceLinksourceLinks (Index index) const noexcept
 Const access to the source links at the given index.
const std::array< float, 3 > & stripCenterDistance (Index index) const noexcept
 Const access to the strip center distance of the space point at the given index.
std::array< float, 3 > & stripCenterDistance (Index index) noexcept
 Mutable access to the strip center distance of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 3 > > stripCenterDistanceColumn () const noexcept
 Returns a const proxy to the strip center distance column.
MutableSpacePointColumnProxy< std::array< float, 3 > > stripCenterDistanceColumn () noexcept
 Returns a mutable proxy to the strip center distance column.
ConstSubset subset (const IndexSubset &subset) const noexcept
 Creates a const subset of space points from the given index subset.
MutableSubset subset (const IndexSubset &subset) noexcept
 Creates a mutable subset of space points from the given index subset.
float time (Index index) const noexcept
 Const access to the time information of the space point at the given index.
float & time (Index index) noexcept
 Mutable access to the time information of the space point at the given index.
ConstSpacePointColumnProxy< float > timeColumn () const noexcept
 Returns a const proxy to the time column.
MutableSpacePointColumnProxy< float > timeColumn () noexcept
 Returns a mutable proxy to the time column.
const std::array< float, 3 > & topStripCenter (Index index) const noexcept
 Const access to the top strip center of the space point at the given index.
std::array< float, 3 > & topStripCenter (Index index) noexcept
 Mutable access to the top strip center of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 3 > > topStripCenterColumn () const noexcept
 Returns a const proxy to the top strip center column.
MutableSpacePointColumnProxy< std::array< float, 3 > > topStripCenterColumn () noexcept
 Returns a mutable proxy to the top strip center column.
const std::array< float, 3 > & topStripVector (Index index) const noexcept
 Const access to the top strip vector of the space point at the given index.
std::array< float, 3 > & topStripVector (Index index) noexcept
 Mutable access to the top strip vector of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 3 > > topStripVectorColumn () const noexcept
 Returns a const proxy to the top strip vector column.
MutableSpacePointColumnProxy< std::array< float, 3 > > topStripVectorColumn () noexcept
 Returns a mutable proxy to the top strip vector column.
float varianceR (Index index) const noexcept
 Const access to the variance in R direction of the space point at the given index.
float & varianceR (Index index) noexcept
 Mutable access to the variance in R direction of the space point at the given index.
ConstSpacePointColumnProxy< float > varianceRColumn () const noexcept
 Returns a const proxy to the variance in R direction column.
MutableSpacePointColumnProxy< float > varianceRColumn () noexcept
 Returns a mutable proxy to the variance in R direction column.
float varianceZ (Index index) const noexcept
 Const access to the variance in Z direction of the space point at the given index.
float & varianceZ (Index index) noexcept
 Mutable access to the variance in Z direction of the space point at the given index.
ConstSpacePointColumnProxy< float > varianceZColumn () const noexcept
 Returns a const proxy to the variance in Z direction column.
MutableSpacePointColumnProxy< float > varianceZColumn () noexcept
 Returns a mutable proxy to the variance in Z direction column.
const std::array< float, 2 > & varianceZR (Index index) const noexcept
 Const access to the variance zr of the space point at the given index.
std::array< float, 2 > & varianceZR (Index index) noexcept
 Mutable access to the variance zr of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 2 > > varianceZRColumn () const noexcept
 Returns a const proxy to the variance zr column.
MutableSpacePointColumnProxy< std::array< float, 2 > > varianceZRColumn () noexcept
 Returns a mutable proxy to the variance zr column.
float x (Index index) const noexcept
 Const access to the x coordinate of the space point at the given index.
float & x (Index index) noexcept
 Mutable access to the x coordinate of the space point at the given index.
ConstSpacePointColumnProxy< float > xColumn () const noexcept
 Returns a const proxy to the x coordinate column.
MutableSpacePointColumnProxy< float > xColumn () noexcept
 Returns a mutable proxy to the x coordinate column.
const std::array< float, 2 > & xy (Index index) const noexcept
 Const access to the xy coordinates of the space point at the given index.
std::array< float, 2 > & xy (Index index) noexcept
 Mutable access to the xy coordinates of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 2 > > xyColumn () const noexcept
 Returns a const proxy to the xy coordinates column.
MutableSpacePointColumnProxy< std::array< float, 2 > > xyColumn () noexcept
 Returns a mutable proxy to the xy coordinates column.
const std::array< float, 3 > & xyz (Index index) const noexcept
 Const access to the xyz coordinates of the space point at the given index.
std::array< float, 3 > & xyz (Index index) noexcept
 Mutable access to the xyz coordinates of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 3 > > xyzColumn () const noexcept
 Returns a const proxy to the xyz coordinates column.
MutableSpacePointColumnProxy< std::array< float, 3 > > xyzColumn () noexcept
 Returns a mutable proxy to the xyz coordinates column.
const std::array< float, 4 > & xyzr (Index index) const noexcept
 Const access to the xyzr coordinates of the space point at the given index.
std::array< float, 4 > & xyzr (Index index) noexcept
 Mutable access to the xyzr coordinates of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 4 > > xyzrColumn () const noexcept
 Returns a const proxy to the xyzr coordinates column.
MutableSpacePointColumnProxy< std::array< float, 4 > > xyzrColumn () noexcept
 Returns a mutable proxy to the xyzr coordinates column.
float y (Index index) const noexcept
 Const access to the y coordinate of the space point at the given index.
float & y (Index index) noexcept
 Mutable access to the y coordinate of the space point at the given index.
ConstSpacePointColumnProxy< float > yColumn () const noexcept
 Returns a const proxy to the y coordinate column.
MutableSpacePointColumnProxy< float > yColumn () noexcept
 Returns a mutable proxy to the y coordinate column.
float z (Index index) const noexcept
 Const access to the z coordinate of the space point at the given index.
float & z (Index index) noexcept
 Mutable access to the z coordinate of the space point at the given index.
ConstSpacePointColumnProxy< float > zColumn () const noexcept
 Returns a const proxy to the z coordinate column.
MutableSpacePointColumnProxy< float > zColumn () noexcept
 Returns a mutable proxy to the z coordinate column.
template<typename... Ts>
auto zip (const ConstSpacePointColumnProxy< Ts > &...columns) const noexcept
 Creates a zipped const range of space point data from the given columns.
template<typename... Ts>
auto zip (const IndexRange &range, const ConstSpacePointColumnProxy< Ts > &...columns) const noexcept
 Creates a zipped const range of space point data from the given columns.
template<typename... Ts>
auto zip (const IndexRange &range, const MutableSpacePointColumnProxy< Ts > &...columns) noexcept
 Creates a zipped mutable range of space point data from the given columns.
template<typename... Ts>
auto zip (const IndexSubset &subset, const ConstSpacePointColumnProxy< Ts > &...columns) const noexcept
 Create a zipped range over subset indices and const column data.
template<typename... Ts>
auto zip (const IndexSubset &subset, const MutableSpacePointColumnProxy< Ts > &...columns) noexcept
 Create a zipped range over subset indices and mutable column data.
template<typename... Ts>
auto zip (const MutableSpacePointColumnProxy< Ts > &...columns) noexcept
 Creates a zipped mutable range of space point data from the given columns.
const std::array< float, 2 > & zr (Index index) const noexcept
 Const access to the zr coordinates of the space point at the given index.
std::array< float, 2 > & zr (Index index) noexcept
 Mutable access to the zr coordinates of the space point at the given index.
ConstSpacePointColumnProxy< std::array< float, 2 > > zrColumn () const noexcept
 Returns a const proxy to the zr coordinates column.
MutableSpacePointColumnProxy< std::array< float, 2 > > zrColumn () noexcept
 Returns a mutable proxy to the zr coordinates column.

Detailed Description

A container for space points, which can hold additional columns of data and allows for efficient access to space points and their associated source links.

Individual space points are addressed via index. A proxy object simplifies the handling.

Member Typedef Documentation

◆ const_iterator

Type alias for const iterator over space points.

◆ ConstProxy

Type alias for const space point proxy.

◆ ConstRange

Type alias for const range of space points.

◆ ConstSubset

Type alias for const subset of space points.

◆ Index

Type alias for space point index in container.

◆ IndexRange

Type alias for range of space point indices.

◆ IndexSubset

Type alias for subset of space point indices.

◆ Iterator

template<bool read_only>
using Acts::SpacePointContainer2::Iterator
Initial value:
Acts::detail::ContainerIterator<
std::conditional_t<read_only, ConstSpacePointProxy2,
Index, read_only>
SeedIndex2 Index
Type alias for seed index type.
Definition SeedContainer2.hpp:34
SpacePointContainer2(SpacePointColumns columns=SpacePointColumns::None) noexcept
Constructs and empty space point container.
SpacePointProxy2< false > MutableSpacePointProxy2
Definition SpacePointContainer2.hpp:40
SpacePointProxy2< true > ConstSpacePointProxy2
Definition SpacePointContainer2.hpp:41

Type alias for template iterator over space points in container.

◆ iterator

Type alias for mutable iterator over space points.

◆ MutableProxy

Type alias for mutable space point proxy.

◆ MutableRange

Type alias for mutable range of space points.

◆ MutableSubset

Type alias for mutable subset of space points.

Constructor & Destructor Documentation

◆ SpacePointContainer2() [1/3]

Acts::SpacePointContainer2::SpacePointContainer2 ( SpacePointColumns columns = SpacePointColumns::None)
explicitnoexcept

Constructs and empty space point container.

Parameters
columnsThe columns to create in the container.

◆ SpacePointContainer2() [2/3]

Acts::SpacePointContainer2::SpacePointContainer2 ( const SpacePointContainer2 & other)
noexcept

Constructs a copy of the given space point container.

Parameters
otherThe space point container to copy.

◆ SpacePointContainer2() [3/3]

Acts::SpacePointContainer2::SpacePointContainer2 ( SpacePointContainer2 && other)
noexcept

Move constructs a space point container.

Parameters
otherThe space point container to move.

◆ ~SpacePointContainer2()

Acts::SpacePointContainer2::~SpacePointContainer2 ( )
defaultnoexcept

Detructs the space point container.

Member Function Documentation

◆ assignSourceLinks()

void Acts::SpacePointContainer2::assignSourceLinks ( Index index,
std::span< const SourceLink > sourceLinks )

Assigns source links to the space point at the given index.

Parameters
indexThe index of the space point to assign source links to.
sourceLinksA span of source links to assign to the space point.
Exceptions
std::out_of_rangeif the index is out of range.
std::logic_errorif no source links column is available.
std::logic_errorif source links are already assigned to the space point.

◆ at() [1/2]

MutableProxy Acts::SpacePointContainer2::at ( Index index)

Returns a mutable proxy to the space point at the given index.

If the index is out of range, an exception is thrown.

Parameters
indexThe index of the space point to access.
Returns
A mutable proxy to the space point at the given index.
Exceptions
std::out_of_rangeif the index is out of range.

◆ at() [2/2]

ConstProxy Acts::SpacePointContainer2::at ( Index index) const

Returns a const proxy to the space point at the given index.

If the index is out of range, an exception is thrown.

Parameters
indexThe index of the space point to access.
Returns
A const proxy to the space point at the given index.
Exceptions
std::out_of_rangeif the index is out of range.

◆ begin() [1/2]

const_iterator Acts::SpacePointContainer2::begin ( ) const
noexcept

Returns const iterator to the beginning of the container.

Returns
Const iterator pointing to the first space point

◆ begin() [2/2]

iterator Acts::SpacePointContainer2::begin ( )
noexcept

Returns mutable iterator to the beginning of the container.

Returns
Mutable iterator pointing to the first space point

◆ bottomStripVector() [1/2]

const std::array< float, 3 > & Acts::SpacePointContainer2::bottomStripVector ( Index index) const
noexcept

Const access to the bottom strip vector of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the bottom strip vector of the space point.

◆ bottomStripVector() [2/2]

std::array< float, 3 > & Acts::SpacePointContainer2::bottomStripVector ( Index index)
noexcept

Mutable access to the bottom strip vector of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the bottom strip vector of the space point.

◆ bottomStripVectorColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::bottomStripVectorColumn ( ) const
noexcept

Returns a const proxy to the bottom strip vector column.

Returns
A const proxy to the bottom strip vector column.

◆ bottomStripVectorColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::bottomStripVectorColumn ( )
noexcept

Returns a mutable proxy to the bottom strip vector column.

Returns
A mutable proxy to the bottom strip vector column.

◆ clear()

void Acts::SpacePointContainer2::clear ( )
noexcept

Clears the container, removing all space points and columns.

◆ column()

template<typename T>
ConstSpacePointColumnProxy< T > Acts::SpacePointContainer2::column ( const std::string & name) const

Returns a mutable reference to the Column with the given name.

If the column does not exist, an exception is thrown.

Parameters
nameThe name of the column.
Returns
A mutable reference to the Column.
Exceptions
std::runtime_errorif the column does not exist.

◆ copyFromIndex() [1/2]

SpacePointIndex2 Acts::SpacePointContainer2::copyFromIndex ( Index index) const
noexcept

Const access to the copy from index of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the copy from index of the space point.

◆ copyFromIndex() [2/2]

SpacePointIndex2 & Acts::SpacePointContainer2::copyFromIndex ( Index index)
noexcept

Mutable access to the copy from index of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the copy from index of the space point.

◆ copyFromIndexColumn() [1/2]

ConstSpacePointColumnProxy< SpacePointIndex2 > Acts::SpacePointContainer2::copyFromIndexColumn ( ) const
noexcept

Returns a const proxy to the copy from index column.

Returns
A const proxy to the copy from index column.

◆ copyFromIndexColumn() [2/2]

MutableSpacePointColumnProxy< SpacePointIndex2 > Acts::SpacePointContainer2::copyFromIndexColumn ( )
noexcept

Returns a mutable proxy to the copy from index column.

Returns
A mutable proxy to the copy from index column.

◆ createColumn()

template<typename T>
MutableSpacePointColumnProxy< T > Acts::SpacePointContainer2::createColumn ( const std::string & name)

Creates a new column with the given name.

If a column with the same name already exists, an exception is thrown.

Parameters
nameThe name of the column.
Returns
A reference to the newly created column.
Exceptions
std::runtime_errorif a column with the same name already exists.
std::runtime_errorif the column name is reserved.

◆ createColumns()

void Acts::SpacePointContainer2::createColumns ( SpacePointColumns columns)
noexcept

Creates additional columns.

This will create the columns if they do not already exist.

Parameters
columnsThe columns to create.

◆ createSpacePoint()

MutableProxy Acts::SpacePointContainer2::createSpacePoint ( )
noexcept

Creates a new space point at the end of the container.

Returns
A mutable proxy to the newly created space point.

◆ dropColumn()

void Acts::SpacePointContainer2::dropColumn ( const std::string & name)

Drops the column with the given name.

If the column does not exist, an exception is thrown.

Parameters
nameThe name of the column.
Exceptions
std::runtime_errorif the column does not exist.
std::runtime_errorif the column name is reserved.

◆ dropColumns()

void Acts::SpacePointContainer2::dropColumns ( SpacePointColumns columns)
noexcept

Drops the specified columns from the container.

This will only drop columns if they exist.

Parameters
columnsThe columns to drop.

◆ empty()

bool Acts::SpacePointContainer2::empty ( ) const
nodiscardnoexcept

Checks if the container is empty.

Returns
True if the container is empty, false otherwise.

◆ end() [1/2]

const_iterator Acts::SpacePointContainer2::end ( ) const
noexcept

Returns const iterator to the end of the container.

Returns
Const iterator pointing past the last space point

◆ end() [2/2]

iterator Acts::SpacePointContainer2::end ( )
noexcept

Returns mutable iterator to the end of the container.

Returns
Mutable iterator pointing past the last space point

◆ hasColumn()

bool Acts::SpacePointContainer2::hasColumn ( const std::string & name) const
noexcept

Checks if an Column with the given name exists.

Parameters
nameThe name of the column.
Returns
True if the column exists, false otherwise.

◆ hasColumns()

bool Acts::SpacePointContainer2::hasColumns ( SpacePointColumns columns) const
noexcept

Checks if the container has the given Columns.

Parameters
columnsThe Columns to check for.
Returns
True if the container has all the specified Columns, false otherwise.

◆ operator=() [1/2]

SpacePointContainer2 & Acts::SpacePointContainer2::operator= ( const SpacePointContainer2 & other)
noexcept

Assignment operator for copying a space point container.

Parameters
otherThe space point container to copy.
Returns
A reference to this space point container.

◆ operator=() [2/2]

SpacePointContainer2 & Acts::SpacePointContainer2::operator= ( SpacePointContainer2 && other)
noexcept

Move assignment operator for a space point container.

Parameters
otherThe space point container to move.
Returns
A reference to this space point container.

◆ operator[]() [1/2]

ConstProxy Acts::SpacePointContainer2::operator[] ( Index index) const
noexcept

Returns a const proxy to the space point at the given index.

Parameters
indexThe index of the space point to access.
Returns
A const proxy to the space point at the given index.

◆ operator[]() [2/2]

MutableProxy Acts::SpacePointContainer2::operator[] ( Index index)
noexcept

Returns a mutable proxy to the space point at the given index.

Parameters
indexThe index of the space point to access.
Returns
A mutable proxy to the space point at the given index.

◆ phi() [1/2]

float Acts::SpacePointContainer2::phi ( Index index) const
noexcept

Const access to the phi coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the phi coordinate of the space point.

◆ phi() [2/2]

float & Acts::SpacePointContainer2::phi ( Index index)
noexcept

Mutable access to the phi coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the phi coordinate of the space point.

◆ phiColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::phiColumn ( ) const
noexcept

Returns a const proxy to the phi coordinate column.

Returns
A const proxy to the phi coordinate column.

◆ phiColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::phiColumn ( )
noexcept

Returns a mutable proxy to the phi coordinate column.

Returns
A mutable proxy to the phi coordinate column.

◆ r() [1/2]

float Acts::SpacePointContainer2::r ( Index index) const
noexcept

Const access to the r coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the r coordinate of the space point.

◆ r() [2/2]

float & Acts::SpacePointContainer2::r ( Index index)
noexcept

Mutable access to the r coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the r coordinate of the space point.

◆ range() [1/2]

ConstRange Acts::SpacePointContainer2::range ( const IndexRange & range) const
noexcept

Creates a range of space points from the given index range.

Parameters
rangeThe index range to create the range from.
Returns
A const range of space points.

◆ range() [2/2]

MutableRange Acts::SpacePointContainer2::range ( const IndexRange & range)
noexcept

Creates a range of space points from the given index range.

Parameters
rangeThe index range to create the range from.
Returns
A mutable range of space points.

◆ rColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::rColumn ( ) const
noexcept

Returns a const proxy to the r coordinate column.

Returns
A const proxy to the r coordinate column.

◆ rColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::rColumn ( )
noexcept

Returns a mutable proxy to the r coordinate column.

Returns
A mutable proxy to the r coordinate column.

◆ reserve()

void Acts::SpacePointContainer2::reserve ( std::uint32_t size,
float averageSourceLinks = 1 )
noexcept

Reserves space for the given number of space points.

This will reserve space for the source links and other columns as well.

Parameters
sizeThe number of space points to reserve space for.
averageSourceLinksThe average number of source links per space point.

◆ resolvedIndex()

SpacePointIndex2 Acts::SpacePointContainer2::resolvedIndex ( Index index) const
noexcept

Resolves the index to the actual index in the container.

If the copyFromIndex column is set, it will return the index from that column. Otherwise, it will return the index itself.

Parameters
indexThe index to resolve.
Returns
The resolved index.

◆ size()

std::uint32_t Acts::SpacePointContainer2::size ( ) const
noexcept

Returns the number of space points in the container.

Returns
The number of space points in the container.

◆ sourceLinks() [1/2]

std::span< SourceLink > Acts::SpacePointContainer2::sourceLinks ( Index index)

Mutable access to the source links at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the source link at the given index.

◆ sourceLinks() [2/2]

std::span< const SourceLink > Acts::SpacePointContainer2::sourceLinks ( Index index) const
noexcept

Const access to the source links at the given index.

Parameters
indexThe index of the space point.
Returns
A const span to the source links at the given index.

◆ stripCenterDistance() [1/2]

const std::array< float, 3 > & Acts::SpacePointContainer2::stripCenterDistance ( Index index) const
noexcept

Const access to the strip center distance of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the strip center distance of the space point.

◆ stripCenterDistance() [2/2]

std::array< float, 3 > & Acts::SpacePointContainer2::stripCenterDistance ( Index index)
noexcept

Mutable access to the strip center distance of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the strip center distance of the space point.

◆ stripCenterDistanceColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::stripCenterDistanceColumn ( ) const
noexcept

Returns a const proxy to the strip center distance column.

Returns
A const proxy to the strip center distance column.

◆ stripCenterDistanceColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::stripCenterDistanceColumn ( )
noexcept

Returns a mutable proxy to the strip center distance column.

Returns
A mutable proxy to the strip center distance column.

◆ subset() [1/2]

ConstSubset Acts::SpacePointContainer2::subset ( const IndexSubset & subset) const
noexcept

Creates a const subset of space points from the given index subset.

Parameters
subsetThe index subset to create the subset from.
Returns
A const subset of space points.

◆ subset() [2/2]

MutableSubset Acts::SpacePointContainer2::subset ( const IndexSubset & subset)
noexcept

Creates a mutable subset of space points from the given index subset.

Parameters
subsetThe index subset to create the subset from.
Returns
A mutable subset of space points.

◆ time() [1/2]

float Acts::SpacePointContainer2::time ( Index index) const
noexcept

Const access to the time information of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the time information of the space point.

◆ time() [2/2]

float & Acts::SpacePointContainer2::time ( Index index)
noexcept

Mutable access to the time information of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the time information of the space point.

◆ timeColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::timeColumn ( ) const
noexcept

Returns a const proxy to the time column.

Returns
A const proxy to the time column.

◆ timeColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::timeColumn ( )
noexcept

Returns a mutable proxy to the time column.

Returns
A mutable proxy to the time column.

◆ topStripCenter() [1/2]

const std::array< float, 3 > & Acts::SpacePointContainer2::topStripCenter ( Index index) const
noexcept

Const access to the top strip center of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the top strip center of the space point.

◆ topStripCenter() [2/2]

std::array< float, 3 > & Acts::SpacePointContainer2::topStripCenter ( Index index)
noexcept

Mutable access to the top strip center of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the top strip center of the space point.

◆ topStripCenterColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::topStripCenterColumn ( ) const
noexcept

Returns a const proxy to the top strip center column.

Returns
A const proxy to the top strip center column.

◆ topStripCenterColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::topStripCenterColumn ( )
noexcept

Returns a mutable proxy to the top strip center column.

Returns
A mutable proxy to the top strip center column.

◆ topStripVector() [1/2]

const std::array< float, 3 > & Acts::SpacePointContainer2::topStripVector ( Index index) const
noexcept

Const access to the top strip vector of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the top strip vector of the space point.

◆ topStripVector() [2/2]

std::array< float, 3 > & Acts::SpacePointContainer2::topStripVector ( Index index)
noexcept

Mutable access to the top strip vector of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the top strip vector of the space point.

◆ topStripVectorColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::topStripVectorColumn ( ) const
noexcept

Returns a const proxy to the top strip vector column.

Returns
A const proxy to the top strip vector column.

◆ topStripVectorColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::topStripVectorColumn ( )
noexcept

Returns a mutable proxy to the top strip vector column.

Returns
A mutable proxy to the top strip vector column.

◆ varianceR() [1/2]

float Acts::SpacePointContainer2::varianceR ( Index index) const
noexcept

Const access to the variance in R direction of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the variance in R direction of the space point.

◆ varianceR() [2/2]

float & Acts::SpacePointContainer2::varianceR ( Index index)
noexcept

Mutable access to the variance in R direction of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the variance in R direction of the space point.

◆ varianceRColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::varianceRColumn ( ) const
noexcept

Returns a const proxy to the variance in R direction column.

Returns
A const proxy to the variance in R direction column.

◆ varianceRColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::varianceRColumn ( )
noexcept

Returns a mutable proxy to the variance in R direction column.

Returns
A mutable proxy to the variance in R direction column.

◆ varianceZ() [1/2]

float Acts::SpacePointContainer2::varianceZ ( Index index) const
noexcept

Const access to the variance in Z direction of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the variance in Z direction of the space point.

◆ varianceZ() [2/2]

float & Acts::SpacePointContainer2::varianceZ ( Index index)
noexcept

Mutable access to the variance in Z direction of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the variance in Z direction of the space point.

◆ varianceZColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::varianceZColumn ( ) const
noexcept

Returns a const proxy to the variance in Z direction column.

Returns
A const proxy to the variance in Z direction column.

◆ varianceZColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::varianceZColumn ( )
noexcept

Returns a mutable proxy to the variance in Z direction column.

Returns
A mutable proxy to the variance in Z direction column.

◆ varianceZR() [1/2]

const std::array< float, 2 > & Acts::SpacePointContainer2::varianceZR ( Index index) const
noexcept

Const access to the variance zr of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the variance zr of the space point.

◆ varianceZR() [2/2]

std::array< float, 2 > & Acts::SpacePointContainer2::varianceZR ( Index index)
noexcept

Mutable access to the variance zr of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the variance zr of the space point.

◆ varianceZRColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::varianceZRColumn ( ) const
noexcept

Returns a const proxy to the variance zr column.

Returns
A const proxy to the variance zr column.

◆ varianceZRColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::varianceZRColumn ( )
noexcept

Returns a mutable proxy to the variance zr column.

Returns
A mutable proxy to the variance zr column.

◆ x() [1/2]

float Acts::SpacePointContainer2::x ( Index index) const
noexcept

Const access to the x coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the x coordinate of the space point.

◆ x() [2/2]

float & Acts::SpacePointContainer2::x ( Index index)
noexcept

Mutable access to the x coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the x coordinate of the space point.

◆ xColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::xColumn ( ) const
noexcept

Returns a const proxy to the x coordinate column.

Returns
A const proxy to the x coordinate column.

◆ xColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::xColumn ( )
noexcept

Returns a mutable proxy to the x coordinate column.

Returns
A mutable proxy to the x coordinate column.

◆ xy() [1/2]

const std::array< float, 2 > & Acts::SpacePointContainer2::xy ( Index index) const
noexcept

Const access to the xy coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the xy coordinates of the space point.

◆ xy() [2/2]

std::array< float, 2 > & Acts::SpacePointContainer2::xy ( Index index)
noexcept

Mutable access to the xy coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the xy coordinates of the space point.

◆ xyColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::xyColumn ( ) const
noexcept

Returns a const proxy to the xy coordinates column.

Returns
A const proxy to the xy coordinates column.

◆ xyColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::xyColumn ( )
noexcept

Returns a mutable proxy to the xy coordinates column.

Returns
A mutable proxy to the xy coordinates column.

◆ xyz() [1/2]

const std::array< float, 3 > & Acts::SpacePointContainer2::xyz ( Index index) const
noexcept

Const access to the xyz coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the xyz coordinates of the space point.

◆ xyz() [2/2]

std::array< float, 3 > & Acts::SpacePointContainer2::xyz ( Index index)
noexcept

Mutable access to the xyz coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the xyz coordinates of the space point.

◆ xyzColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::xyzColumn ( ) const
noexcept

Returns a const proxy to the xyz coordinates column.

Returns
A const proxy to the xyz coordinates column.

◆ xyzColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 3 > > Acts::SpacePointContainer2::xyzColumn ( )
noexcept

Returns a mutable proxy to the xyz coordinates column.

Returns
A mutable proxy to the xyz coordinates column.

◆ xyzr() [1/2]

const std::array< float, 4 > & Acts::SpacePointContainer2::xyzr ( Index index) const
noexcept

Const access to the xyzr coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the xyzr coordinates of the space point.

◆ xyzr() [2/2]

std::array< float, 4 > & Acts::SpacePointContainer2::xyzr ( Index index)
noexcept

Mutable access to the xyzr coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the xyzr coordinates of the space point.

◆ xyzrColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 4 > > Acts::SpacePointContainer2::xyzrColumn ( ) const
noexcept

Returns a const proxy to the xyzr coordinates column.

Returns
A const proxy to the xyzr coordinates column.

◆ xyzrColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 4 > > Acts::SpacePointContainer2::xyzrColumn ( )
noexcept

Returns a mutable proxy to the xyzr coordinates column.

Returns
A mutable proxy to the xyzr coordinates column.

◆ y() [1/2]

float Acts::SpacePointContainer2::y ( Index index) const
noexcept

Const access to the y coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the y coordinate of the space point.

◆ y() [2/2]

float & Acts::SpacePointContainer2::y ( Index index)
noexcept

Mutable access to the y coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the y coordinate of the space point.

◆ yColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::yColumn ( ) const
noexcept

Returns a const proxy to the y coordinate column.

Returns
A const proxy to the y coordinate column.

◆ yColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::yColumn ( )
noexcept

Returns a mutable proxy to the y coordinate column.

Returns
A mutable proxy to the y coordinate column.

◆ z() [1/2]

float Acts::SpacePointContainer2::z ( Index index) const
noexcept

Const access to the z coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the z coordinate of the space point.

◆ z() [2/2]

float & Acts::SpacePointContainer2::z ( Index index)
noexcept

Mutable access to the z coordinate of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the z coordinate of the space point.

◆ zColumn() [1/2]

ConstSpacePointColumnProxy< float > Acts::SpacePointContainer2::zColumn ( ) const
noexcept

Returns a const proxy to the z coordinate column.

Returns
A const proxy to the z coordinate column.

◆ zColumn() [2/2]

MutableSpacePointColumnProxy< float > Acts::SpacePointContainer2::zColumn ( )
noexcept

Returns a mutable proxy to the z coordinate column.

Returns
A mutable proxy to the z coordinate column.

◆ zip() [1/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const ConstSpacePointColumnProxy< Ts > &... columns) const
noexcept

Creates a zipped const range of space point data from the given columns.

Parameters
columnsThe columns to zip.
Returns
A zipped const range of space point data.

◆ zip() [2/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const IndexRange & range,
const ConstSpacePointColumnProxy< Ts > &... columns ) const
noexcept

Creates a zipped const range of space point data from the given columns.

Parameters
rangeThe index range to create the zipped range from.
columnsThe columns to zip.
Returns
A zipped const range of space point data.

◆ zip() [3/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const IndexRange & range,
const MutableSpacePointColumnProxy< Ts > &... columns )
noexcept

Creates a zipped mutable range of space point data from the given columns.

Parameters
rangeThe index range to zip.
columnsThe columns to zip.
Returns
A zipped mutable range of space point data.

◆ zip() [4/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const IndexSubset & subset,
const ConstSpacePointColumnProxy< Ts > &... columns ) const
noexcept

Create a zipped range over subset indices and const column data.

Template Parameters
TsColumn data types to zip with indices
Parameters
subsetIndex subset to iterate over
columnsConst column proxies to zip with indices
Returns
Const zipped range for iteration over indices and column data

◆ zip() [5/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const IndexSubset & subset,
const MutableSpacePointColumnProxy< Ts > &... columns )
noexcept

Create a zipped range over subset indices and mutable column data.

Template Parameters
TsColumn data types to zip with indices
Parameters
subsetIndex subset to iterate over
columnsMutable column proxies to zip with indices
Returns
Zipped range for iteration over indices and column data

◆ zip() [6/6]

template<typename... Ts>
auto Acts::SpacePointContainer2::zip ( const MutableSpacePointColumnProxy< Ts > &... columns)
noexcept

Creates a zipped mutable range of space point data from the given columns.

Parameters
columnsThe columns to zip.
Returns
A zipped mutable range of space point data.

◆ zr() [1/2]

const std::array< float, 2 > & Acts::SpacePointContainer2::zr ( Index index) const
noexcept

Const access to the zr coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A const reference to the zr coordinates of the space point.

◆ zr() [2/2]

std::array< float, 2 > & Acts::SpacePointContainer2::zr ( Index index)
noexcept

Mutable access to the zr coordinates of the space point at the given index.

Parameters
indexThe index of the space point.
Returns
A mutable reference to the zr coordinates of the space point.

◆ zrColumn() [1/2]

ConstSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::zrColumn ( ) const
noexcept

Returns a const proxy to the zr coordinates column.

Returns
A const proxy to the zr coordinates column.

◆ zrColumn() [2/2]

MutableSpacePointColumnProxy< std::array< float, 2 > > Acts::SpacePointContainer2::zrColumn ( )
noexcept

Returns a mutable proxy to the zr coordinates column.

Returns
A mutable proxy to the zr coordinates column.