|
ACTS
Experiment-independent tracking
|
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 |
| Range facade over contiguous index spans. More... | |
| class | Subset |
| Subset facade over arbitrary index sets. More... | |
Public Types | |
| using | const_iterator = Iterator<true> |
| Type alias for const iterator over space points. | |
| template<typename T> | |
| using | ConstColumnProxy = ConstSpacePointColumnProxy<T> |
| Type alias for const column proxy. | |
| 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. | |
| template<typename T> | |
| using | MutableColumnProxy = MutableSpacePointColumnProxy<T> |
| Type alias for mutable column proxy. | |
| 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. | |
| 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. | |
| ConstColumnProxy< std::array< float, 3 > > | bottomStripVectorColumn () const noexcept |
| Returns a const proxy to the bottom strip vector column. | |
| MutableColumnProxy< 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> | |
| MutableColumnProxy< T > | column (const std::string &name) |
| Returns a mutable reference to the column with the given name. | |
| template<typename T> | |
| ConstColumnProxy< T > | column (const std::string &name) const |
| Returns a const reference to the column with the given name. | |
| void | copyFrom (Index index, const SpacePointContainer2 &otherContainer, Index otherIndex, SpacePointColumns columnsToCopy) |
| Copies the specified columns from another space point to this space point. | |
| ConstColumnProxy< SpacePointIndex2 > | copyFromIndexColumn () const noexcept |
| Returns a const proxy to the copy from index column. | |
| MutableColumnProxy< SpacePointIndex2 > | copyFromIndexColumn () noexcept |
| Returns a mutable proxy to the copy from index column. | |
| template<typename T> | |
| MutableColumnProxy< 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. | |
| SpacePointContainer2 & | operator= (const SpacePointContainer2 &other) noexcept |
| Assignment operator for copying a space point container. | |
| SpacePointContainer2 & | operator= (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. | |
| ConstColumnProxy< float > | phiColumn () const noexcept |
| Returns a const proxy to the phi coordinate column. | |
| MutableColumnProxy< float > | phiColumn () noexcept |
| Returns a mutable proxy to the phi coordinate column. | |
| 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. | |
| ConstColumnProxy< float > | rColumn () const noexcept |
| Returns a const proxy to the r coordinate column. | |
| MutableColumnProxy< 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. | |
| std::uint32_t | size () const noexcept |
| Returns the number of space points in the container. | |
| ConstColumnProxy< std::array< float, 3 > > | stripCenterDistanceColumn () const noexcept |
| Returns a const proxy to the strip center distance column. | |
| MutableColumnProxy< 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. | |
| ConstColumnProxy< float > | timeColumn () const noexcept |
| Returns a const proxy to the time column. | |
| MutableColumnProxy< float > | timeColumn () noexcept |
| Returns a mutable proxy to the time column. | |
| ConstColumnProxy< std::array< float, 3 > > | topStripCenterColumn () const noexcept |
| Returns a const proxy to the top strip center column. | |
| MutableColumnProxy< std::array< float, 3 > > | topStripCenterColumn () noexcept |
| Returns a mutable proxy to the top strip center column. | |
| ConstColumnProxy< std::array< float, 3 > > | topStripVectorColumn () const noexcept |
| Returns a const proxy to the top strip vector column. | |
| MutableColumnProxy< std::array< float, 3 > > | topStripVectorColumn () noexcept |
| Returns a mutable proxy to the top strip vector column. | |
| ConstColumnProxy< float > | varianceRColumn () const noexcept |
| Returns a const proxy to the variance in R direction column. | |
| MutableColumnProxy< float > | varianceRColumn () noexcept |
| Returns a mutable proxy to the variance in R direction column. | |
| ConstColumnProxy< float > | varianceZColumn () const noexcept |
| Returns a const proxy to the variance in Z direction column. | |
| MutableColumnProxy< float > | varianceZColumn () noexcept |
| Returns a mutable proxy to the variance in Z direction column. | |
| ConstColumnProxy< std::array< float, 2 > > | varianceZRColumn () const noexcept |
| Returns a const proxy to the variance zr column. | |
| MutableColumnProxy< std::array< float, 2 > > | varianceZRColumn () noexcept |
| Returns a mutable proxy to the variance zr column. | |
| ConstColumnProxy< float > | xColumn () const noexcept |
| Returns a const proxy to the x coordinate column. | |
| MutableColumnProxy< float > | xColumn () noexcept |
| Returns a mutable proxy to the x coordinate column. | |
| ConstColumnProxy< std::array< float, 2 > > | xyColumn () const noexcept |
| Returns a const proxy to the xy coordinates column. | |
| MutableColumnProxy< std::array< float, 2 > > | xyColumn () noexcept |
| Returns a mutable proxy to the xy coordinates column. | |
| ConstColumnProxy< std::array< float, 3 > > | xyzColumn () const noexcept |
| Returns a const proxy to the xyz coordinates column. | |
| MutableColumnProxy< std::array< float, 3 > > | xyzColumn () noexcept |
| Returns a mutable proxy to the xyz coordinates column. | |
| ConstColumnProxy< std::array< float, 4 > > | xyzrColumn () const noexcept |
| Returns a const proxy to the xyzr coordinates column. | |
| MutableColumnProxy< std::array< float, 4 > > | xyzrColumn () noexcept |
| Returns a mutable proxy to the xyzr coordinates column. | |
| ConstColumnProxy< float > | yColumn () const noexcept |
| Returns a const proxy to the y coordinate column. | |
| MutableColumnProxy< float > | yColumn () noexcept |
| Returns a mutable proxy to the y coordinate column. | |
| ConstColumnProxy< float > | zColumn () const noexcept |
| Returns a const proxy to the z coordinate column. | |
| MutableColumnProxy< float > | zColumn () noexcept |
| Returns a mutable proxy to the z coordinate column. | |
| template<typename... Ts> | |
| auto | zip (const ConstColumnProxy< 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 ConstColumnProxy< 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 MutableColumnProxy< 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 ConstColumnProxy< Ts > &...columns) const noexcept |
| Create a zipped range over subset indices and const column data. | |
| template<typename... Ts> | |
| auto | zip (const IndexSubset &subset, const MutableColumnProxy< Ts > &...columns) noexcept |
| Create a zipped range over subset indices and mutable column data. | |
| template<typename... Ts> | |
| auto | zip (const MutableColumnProxy< Ts > &...columns) noexcept |
| Creates a zipped mutable range of space point data from the given columns. | |
| ConstColumnProxy< std::array< float, 2 > > | zrColumn () const noexcept |
| Returns a const proxy to the zr coordinates column. | |
| MutableColumnProxy< std::array< float, 2 > > | zrColumn () noexcept |
| Returns a mutable proxy to the zr coordinates column. | |
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.
| using Acts::SpacePointContainer2::Iterator |
Type alias for template iterator over space points in container.
|
explicitnoexcept |
Constructs and empty space point container.
| columns | The columns to create in the container. |
|
noexcept |
Constructs a copy of the given space point container.
| other | The space point container to copy. |
|
noexcept |
Move constructs a space point container.
| other | The space point container to move. |
| 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.
| index | The index of the space point to access. |
| std::out_of_range | if the index is out of range. |
| 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.
| index | The index of the space point to access. |
| std::out_of_range | if the index is out of range. |
|
noexcept |
Returns const iterator to the beginning of the container.
|
noexcept |
Returns mutable iterator to the beginning of the container.
|
noexcept |
Returns a const proxy to the bottom strip vector column.
|
noexcept |
Returns a mutable proxy to the bottom strip vector column.
| MutableColumnProxy< T > Acts::SpacePointContainer2::column | ( | const std::string & | name | ) |
Returns a mutable reference to the column with the given name.
If the column does not exist, an exception is thrown.
| name | The name of the column. |
| std::runtime_error | if the column does not exist. |
| ConstColumnProxy< T > Acts::SpacePointContainer2::column | ( | const std::string & | name | ) | const |
Returns a const reference to the column with the given name.
If the column does not exist, an exception is thrown.
| name | The name of the column. |
| std::runtime_error | if the column does not exist. |
| void Acts::SpacePointContainer2::copyFrom | ( | Index | index, |
| const SpacePointContainer2 & | otherContainer, | ||
| Index | otherIndex, | ||
| SpacePointColumns | columnsToCopy ) |
Copies the specified columns from another space point to this space point.
| index | The index of the space point to copy to in this container. |
| otherContainer | The space point container to copy from. |
| otherIndex | The index of the space point to copy from in the other container. |
| columnsToCopy | The columns to copy from the other space point. |
|
noexcept |
Returns a const proxy to the copy from index column.
|
noexcept |
Returns a mutable proxy to the copy from index column.
| MutableColumnProxy< 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.
| name | The name of the column. |
| std::runtime_error | if a column with the same name already exists. |
| std::runtime_error | if the column name is reserved. |
|
noexcept |
Creates additional columns.
This will create the columns if they do not already exist.
| columns | The columns to create. |
|
noexcept |
Creates a new space point at the end of the container.
| 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.
| name | The name of the column. |
| std::runtime_error | if the column does not exist. |
| std::runtime_error | if the column name is reserved. |
|
noexcept |
Drops the specified columns from the container.
This will only drop columns if they exist.
| columns | The columns to drop. |
|
nodiscardnoexcept |
Checks if the container is empty.
|
noexcept |
Returns const iterator to the end of the container.
|
noexcept |
Returns mutable iterator to the end of the container.
|
noexcept |
Checks if an Column with the given name exists.
| name | The name of the column. |
|
noexcept |
Checks if the container has the given Columns.
| columns | The Columns to check for. |
|
noexcept |
Assignment operator for copying a space point container.
| other | The space point container to copy. |
|
noexcept |
Move assignment operator for a space point container.
| other | The space point container to move. |
|
noexcept |
Returns a const proxy to the space point at the given index.
| index | The index of the space point to access. |
|
noexcept |
Returns a mutable proxy to the space point at the given index.
| index | The index of the space point to access. |
|
noexcept |
Returns a const proxy to the phi coordinate column.
|
noexcept |
Returns a mutable proxy to the phi coordinate column.
|
noexcept |
Creates a range of space points from the given index range.
| range | The index range to create the range from. |
|
noexcept |
Creates a range of space points from the given index range.
| range | The index range to create the range from. |
|
noexcept |
Returns a const proxy to the r coordinate column.
|
noexcept |
Returns a mutable proxy to the r coordinate column.
|
noexcept |
Reserves space for the given number of space points.
This will reserve space for the source links and other columns as well.
| size | The number of space points to reserve space for. |
| averageSourceLinks | The average number of source links per space point. |
|
noexcept |
Returns the number of space points in the container.
|
noexcept |
Returns a const proxy to the strip center distance column.
|
noexcept |
Returns a mutable proxy to the strip center distance column.
|
noexcept |
Creates a const subset of space points from the given index subset.
| subset | The index subset to create the subset from. |
|
noexcept |
Creates a mutable subset of space points from the given index subset.
| subset | The index subset to create the subset from. |
|
noexcept |
Returns a const proxy to the time column.
|
noexcept |
Returns a mutable proxy to the time column.
|
noexcept |
Returns a const proxy to the top strip center column.
|
noexcept |
Returns a mutable proxy to the top strip center column.
|
noexcept |
Returns a const proxy to the top strip vector column.
|
noexcept |
Returns a mutable proxy to the top strip vector column.
|
noexcept |
Returns a const proxy to the variance in R direction column.
|
noexcept |
Returns a mutable proxy to the variance in R direction column.
|
noexcept |
Returns a const proxy to the variance in Z direction column.
|
noexcept |
Returns a mutable proxy to the variance in Z direction column.
|
noexcept |
Returns a const proxy to the variance zr column.
|
noexcept |
Returns a mutable proxy to the variance zr column.
|
noexcept |
Returns a const proxy to the x coordinate column.
|
noexcept |
Returns a mutable proxy to the x coordinate column.
|
noexcept |
Returns a const proxy to the xy coordinates column.
|
noexcept |
Returns a mutable proxy to the xy coordinates column.
|
noexcept |
Returns a const proxy to the xyz coordinates column.
|
noexcept |
Returns a mutable proxy to the xyz coordinates column.
|
noexcept |
Returns a const proxy to the xyzr coordinates column.
|
noexcept |
Returns a mutable proxy to the xyzr coordinates column.
|
noexcept |
Returns a const proxy to the y coordinate column.
|
noexcept |
Returns a mutable proxy to the y coordinate column.
|
noexcept |
Returns a const proxy to the z coordinate column.
|
noexcept |
Returns a mutable proxy to the z coordinate column.
|
noexcept |
Creates a zipped const range of space point data from the given columns.
| columns | The columns to zip. |
|
noexcept |
Creates a zipped const range of space point data from the given columns.
| range | The index range to create the zipped range from. |
| columns | The columns to zip. |
|
noexcept |
Creates a zipped mutable range of space point data from the given columns.
| range | The index range to zip. |
| columns | The columns to zip. |
|
noexcept |
Create a zipped range over subset indices and const column data.
| Ts | Column data types to zip with indices |
| subset | Index subset to iterate over |
| columns | Const column proxies to zip with indices |
|
noexcept |
Create a zipped range over subset indices and mutable column data.
| Ts | Column data types to zip with indices |
| subset | Index subset to iterate over |
| columns | Mutable column proxies to zip with indices |
|
noexcept |
Creates a zipped mutable range of space point data from the given columns.
| columns | The columns to zip. |
|
noexcept |
Returns a const proxy to the zr coordinates column.
|
noexcept |
Returns a mutable proxy to the zr coordinates column.