|
ACTS
Experiment-independent tracking
|
Lookup implementation which wraps one element and always returns this element when lookup is called. More...
#include <Acts/Surfaces/SurfaceArray.hpp>
Public Member Functions | |
| SingleElementLookup (const std::vector< const Surface * > &elements) | |
| Default constructor. | |
| SingleElementLookup (const Surface *element) | |
| Default constructor. | |
| std::span< const Surface *const > | at (std::array< std::size_t, 2 > gridIndices, std::uint8_t neighborDistance) const override |
| Get all surfaces in bin given by local grid indices and neighbor distance. | |
| void | fill (const GeometryContext &, std::span< const Surface *const >) override |
| Comply with concept and provide fill method. | |
| std::vector< const IAxis * > | getAxes () const override |
Returns an empty vector of AnyAxis. | |
| Vector3 | getBinCenter (std::size_t) const override |
| Gets the bin center, but always returns (0, 0, 0). | |
| bool | isValidBin (std::size_t) const override |
| Returns if the bin is valid (it is). | |
| std::span< const Surface *const > | lookup (const GeometryContext &, const Vector3 &, const Vector3 &) const override |
Lookup, always returns element. | |
| const std::vector< const Surface * > & | lookup (const Vector3 &, const Vector3 &) const override |
Lookup, always returns element. | |
| const std::vector< const Surface * > & | lookup (std::size_t) const override |
Lookup, always returns element. | |
| std::vector< const Surface * > & | lookup (std::size_t) override |
Lookup, always returns element. | |
| std::uint8_t | maxNeighborDistance () const override |
| Get the maximum neighbor distance that is supported by this lookup. | |
| std::span< const Surface *const > | neighbors (const GeometryContext &, const Vector3 &, const Vector3 &) const override |
Lookup, always returns element. | |
| const std::vector< const Surface * > & | neighbors (const Vector3 &, const Vector3 &) const override |
Lookup, always returns element. | |
| std::array< std::size_t, 2 > | numLocalBins () const override |
| Get the number of local bins in each dimension. | |
| std::size_t | size () const override |
| Returns the total size of the grid (including under/overflow bins). | |
| const Surface * | surfaceRepresentation () const override |
| Get the representative surface used for this lookup. | |
| Public Member Functions inherited from Acts::SurfaceArray::ISurfaceGridLookup | |
| virtual std::vector< AxisDirection > | binningValues () const |
| The binning values described by this surface grid lookup. | |
Lookup implementation which wraps one element and always returns this element when lookup is called.
|
explicit |
Default constructor.
| element | the one and only element. |
|
explicit |
Default constructor.
| elements | the surfaces that are provided through a single lookup |
|
overridevirtual |
Get all surfaces in bin given by local grid indices and neighbor distance.
| gridIndices | the local grid indices |
| neighborDistance | the neighbor distance to include in the lookup |
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Comply with concept and provide fill method.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Returns an empty vector of AnyAxis.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Gets the bin center, but always returns (0, 0, 0).
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Returns if the bin is valid (it is).
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Get the maximum neighbor distance that is supported by this lookup.
This is used to determine how many neighbors to include in neighbor lookups.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Lookup, always returns element.
element Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Get the number of local bins in each dimension.
This is used to determine the size of the grid for neighbor lookups.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Returns the total size of the grid (including under/overflow bins).
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Get the representative surface used for this lookup.
Implements Acts::SurfaceArray::ISurfaceGridLookup.