|
ACTS
Experiment-independent tracking
|
A container of seeds. More...
#include <Acts/EventData/SeedContainer2.hpp>
Public Types | |
| using | const_iterator = Iterator<true> |
| Type alias for const iterator over seeds. | |
| using | ConstProxy = ConstSeedProxy2 |
| Type alias for const seed proxy. | |
| using | Index = SeedIndex2 |
| Type alias for seed index type. | |
| template<bool read_only> | |
| using | Iterator |
| Type alias for iterator template over seed container. | |
| using | iterator = Iterator<false> |
| Type alias for mutable iterator over seeds. | |
| using | MutableProxy = MutableSeedProxy2 |
| Type alias for mutable seed proxy. | |
Public Member Functions | |
| SeedContainer2 () noexcept | |
| Constructs and empty seed container. | |
| SeedContainer2 (const SeedContainer2 &other) noexcept | |
| Constructs a copy of the given seed container. | |
| SeedContainer2 (SeedContainer2 &&other) noexcept | |
| Move constructs a seed container. | |
| ~SeedContainer2 () noexcept=default | |
| Detructs the seed container. | |
| void | assignSpacePointContainer (const SpacePointContainer2 &spacePointContainer) noexcept |
| Assigns the const space point container to be used by this seed container by const reference. | |
| void | assignSpacePointContainer (const std::shared_ptr< const SpacePointContainer2 > &spacePointContainer) noexcept |
| Assigns the const space point container to be used by this seed container by shared pointer. | |
| void | assignSpacePointContainer (const std::shared_ptr< SpacePointContainer2 > &spacePointContainer) noexcept |
| Assigns the mutable space point container to be used by this seed container by shared pointer. | |
| void | assignSpacePointContainer (SpacePointContainer2 &spacePointContainer) noexcept |
| Assigns the mutable space point container to be used by this seed container by reference. | |
| void | assignSpacePointContainer (SpacePointContainer2 spacePointContainer) noexcept |
| Assigns the mutable space point container to be used by this seed container by value. | |
| void | assignSpacePointIndices (Index index, std::span< const SpacePointIndex2 > spacePointIndices) |
| Assigns space point indices to the seed at the given index. | |
| MutableProxy | at (Index index) |
| Returns a mutable proxy to the seed at the given index. | |
| ConstProxy | at (Index index) const |
| Returns a const proxy to the seed at the given index. | |
| const_iterator | begin () const noexcept |
| Get const iterator to the beginning of seeds. | |
| iterator | begin () noexcept |
| Get mutable iterator to the beginning of seeds. | |
| void | clear () noexcept |
| Clears the seed container, removing all seeds and space points. | |
| MutableProxy | createSeed () noexcept |
| Creates a new seed. | |
| bool | empty () const noexcept |
| Checks if the seed container is empty. | |
| const_iterator | end () const noexcept |
| Get const iterator to the end of seeds. | |
| iterator | end () noexcept |
| Get mutable iterator to the end of seeds. | |
| bool | hasMutableSpacePointContainer () const noexcept |
| Checks if a mutable space point container has been assigned to this seed container. | |
| bool | hasSpacePointContainer () const noexcept |
| Checks if a space point container has been assigned to this seed container. | |
| SpacePointContainer2 & | mutableSpacePointContainer () |
| Returns a mutable reference to the assigned space point container. | |
| SeedContainer2 & | operator= (const SeedContainer2 &other) noexcept |
| Assignment operator for copying a seed container. | |
| SeedContainer2 & | operator= (SeedContainer2 &&other) noexcept |
| Move assignment operator for a seed container. | |
| ConstProxy | operator[] (Index index) const noexcept |
| Returns a const proxy to the seed at the given index. | |
| MutableProxy | operator[] (Index index) noexcept |
| Returns a mutable proxy to the seed at the given index. | |
| float | quality (Index index) const noexcept |
| Const access to the quality of the seed at the given index. | |
| float & | quality (Index index) noexcept |
| Mutable access to the quality of the seed at the given index. | |
| void | reserve (std::size_t size, float averageSpacePoints=3) noexcept |
| Reserves space for the given number of seeds. | |
| std::size_t | size () const noexcept |
| Returns the size of the seed container, i.e., the number of seeds contained in it. | |
| const SpacePointContainer2 & | spacePointContainer () const |
| Returns a const reference to the assigned space point container. | |
| std::span< const SpacePointIndex2 > | spacePointIndices (Index index) const noexcept |
| Const access to the space point indices of the seed at the given index. | |
| std::span< SpacePointIndex2 > | spacePointIndices (Index index) noexcept |
| Mutable access to the space point indices of the seed at the given index. | |
| float | vertexZ (Index index) const noexcept |
| Const access to the vertex Z coordinate of the seed at the given index. | |
| float & | vertexZ (Index index) noexcept |
| Mutable access to the vertex Z coordinate of the seed at the given index. | |
A container of seeds.
Individual seeds are modeled as a sequence of N space points which are addressed via an index into the space point container. Individual seeds are addressed via index. A proxy object simplifies the handling.
| using Acts::SeedContainer2::const_iterator = Iterator<true> |
Type alias for const iterator over seeds.
Type alias for const seed proxy.
Type alias for seed index type.
| using Acts::SeedContainer2::Iterator |
Type alias for iterator template over seed container.
| using Acts::SeedContainer2::iterator = Iterator<false> |
Type alias for mutable iterator over seeds.
Type alias for mutable seed proxy.
|
noexcept |
Constructs and empty seed container.
|
noexcept |
Constructs a copy of the given seed container.
| other | The seed container to copy. |
|
noexcept |
Move constructs a seed container.
| other | The seed container to move. |
|
defaultnoexcept |
Detructs the seed container.
|
noexcept |
Assigns the const space point container to be used by this seed container by const reference.
Note that the ownership of the space point container is not transferred and the user must ensure that the space point container remains valid for the lifetime of this seed container.
| spacePointContainer | The space point container to assign. |
|
noexcept |
Assigns the const space point container to be used by this seed container by shared pointer.
The ownership of the space point container is shared between this seed container and the user.
| spacePointContainer | The space point container to assign. |
|
noexcept |
Assigns the mutable space point container to be used by this seed container by shared pointer.
The ownership of the space point container is shared between this seed container and the user.
| spacePointContainer | The space point container to assign. |
|
noexcept |
Assigns the mutable space point container to be used by this seed container by reference.
Note that the ownership of the space point container is not transferred and the user must ensure that the space point container remains valid for the lifetime of this seed container.
| spacePointContainer | The space point container to assign. |
|
noexcept |
Assigns the mutable space point container to be used by this seed container by value.
This can be used to either copy or move-assign a container. The ownership of the space point container is transferred to this seed container.
| spacePointContainer | The space point container to assign. |
| void Acts::SeedContainer2::assignSpacePointIndices | ( | Index | index, |
| std::span< const SpacePointIndex2 > | spacePointIndices ) |
Assigns space point indices to the seed at the given index.
| index | The index of the seed to assign space point indices to. |
| spacePointIndices | A span of space point indices to assign to the seed. |
| std::out_of_range | if the index is out of range. |
| std::logic_error | if space point indices are already assigned to the seed. |
| MutableProxy Acts::SeedContainer2::at | ( | Index | index | ) |
Returns a mutable proxy to the seed at the given index.
If the index is out of range, an exception is thrown.
| index | The index of the seed to access. |
| std::out_of_range | if the index is out of range. |
| ConstProxy Acts::SeedContainer2::at | ( | Index | index | ) | const |
Returns a const proxy to the seed at the given index.
If the index is out of range, an exception is thrown.
| index | The index of the seed to access. |
| std::out_of_range | if the index is out of range. |
|
noexcept |
Get const iterator to the beginning of seeds.
|
noexcept |
Get mutable iterator to the beginning of seeds.
|
noexcept |
Clears the seed container, removing all seeds and space points.
|
noexcept |
Creates a new seed.
|
noexcept |
Checks if the seed container is empty.
|
noexcept |
Get const iterator to the end of seeds.
|
noexcept |
Get mutable iterator to the end of seeds.
|
noexcept |
Checks if a mutable space point container has been assigned to this seed container.
|
noexcept |
Checks if a space point container has been assigned to this seed container.
| SpacePointContainer2 & Acts::SeedContainer2::mutableSpacePointContainer | ( | ) |
Returns a mutable reference to the assigned space point container.
| std::logic_error | if no mutable space point container has been assigned. |
|
noexcept |
Assignment operator for copying a seed container.
| other | The seed container to copy. |
|
noexcept |
Move assignment operator for a seed container.
| other | The seed container to move. |
|
noexcept |
Returns a const proxy to the seed at the given index.
| index | The index of the seed to access. |
|
noexcept |
Returns a mutable proxy to the seed at the given index.
| index | The index of the seed to access. |
|
noexcept |
Const access to the quality of the seed at the given index.
| index | The index of the seed. |
|
noexcept |
Mutable access to the quality of the seed at the given index.
| index | The index of the seed. |
|
noexcept |
Reserves space for the given number of seeds.
| size | The number of seeds to reserve space for. |
| averageSpacePoints | The average number of space points per seed. |
|
noexcept |
Returns the size of the seed container, i.e., the number of seeds contained in it.
| const SpacePointContainer2 & Acts::SeedContainer2::spacePointContainer | ( | ) | const |
Returns a const reference to the assigned space point container.
| std::logic_error | if no space point container has been assigned. |
|
noexcept |
Const access to the space point indices of the seed at the given index.
| index | The index of the seed. |
|
noexcept |
Mutable access to the space point indices of the seed at the given index.
| index | The index of the seed. |
|
noexcept |
Const access to the vertex Z coordinate of the seed at the given index.
| index | The index of the seed. |
|
noexcept |
Mutable access to the vertex Z coordinate of the seed at the given index.
| index | The index of the seed. |