|
ACTS
Experiment-independent tracking
|
Lookup helper which encapsulates a Grid.
More...
#include <Acts/Surfaces/SurfaceArray.hpp>
Public Types | |
| using | Grid_t = Grid<SurfaceVector, Axis1, Axis2> |
Public Member Functions | |
| SurfaceGridLookup (std::shared_ptr< RegularSurface > representative, double tolerance, std::tuple< Axis1, Axis2 > axes, std::vector< AxisDirection > bValues={}) | |
| Construct a surface grid lookup. | |
| std::vector< AxisDirection > | binningValues () const override |
| The binning values described by this surface grid lookup They are in order of the axes. | |
| void | fill (const GeometryContext &gctx, const SurfaceVector &surfaces) override |
Fill provided surfaces into the contained Grid. | |
| std::vector< const IAxis * > | getAxes () const override |
Returns copies of the axes used in the grid as AnyAxis. | |
| Vector3 | getBinCenter (std::size_t bin) const override |
Gets the center position of bin bin in global coordinates. | |
| std::optional< AnyGridConstView< SurfaceVector > > | getGridView () const override |
| Get a view of the grid for inspection. | |
| bool | isValidBin (std::size_t bin) const override |
| Checks if global bin is valid. | |
| const SurfaceVector & | lookup (const Vector3 &position, const Vector3 &direction) const override |
Performs lookup at pos and returns bin content as const reference. | |
| const SurfaceVector & | lookup (std::size_t bin) const override |
| Performs lookup at global bin and returns bin content as const reference. | |
| SurfaceVector & | lookup (std::size_t bin) override |
| Performs lookup at global bin and returns bin content as reference. | |
| const SurfaceVector & | neighbors (const Vector3 &position, const Vector3 &direction) const override |
Performs a lookup at pos, but returns neighbors as well. | |
| 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 | ~ISurfaceGridLookup ()=0 |
| Pure virtual destructor. | |
Lookup helper which encapsulates a Grid.
| Axes | The axes used for the grid |
| using Acts::SurfaceArray::SurfaceGridLookup< Axis1, Axis2 >::Grid_t = Grid<SurfaceVector, Axis1, Axis2> |
| Acts::SurfaceArray::SurfaceGridLookup< Axis1, Axis2 >::SurfaceGridLookup | ( | std::shared_ptr< RegularSurface > | representative, |
| double | tolerance, | ||
| std::tuple< Axis1, Axis2 > | axes, | ||
| std::vector< AxisDirection > | bValues = {} ) |
Construct a surface grid lookup.
| representative | The surface which is used as representative |
| tolerance | The tolerance used for intersection checks |
| axes | The axes used for the grid |
| bValues | Optional vector of axis directions for binning |
|
overridevirtual |
The binning values described by this surface grid lookup They are in order of the axes.
Reimplemented from Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Fill provided surfaces into the contained Grid.
This is done by iterating, accessing the referencePosition, lookup and append. Also populates the neighbor map by combining the filled bins of all bins around a given one.
| gctx | The current geometry context object, e.g. alignment |
| surfaces | Input surface pointers |
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Returns copies of the axes used in the grid as AnyAxis.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Gets the center position of bin bin in global coordinates.
| bin | the global bin index |
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Get a view of the grid for inspection.
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Checks if global bin is valid.
| bin | the global bin index |
Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Performs lookup at pos and returns bin content as const reference.
| position | Lookup position |
| direction | Lookup direction |
SurfaceVector at given bin Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Performs lookup at global bin and returns bin content as const reference.
| bin | Global lookup bin |
SurfaceVector at given bin Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Performs lookup at global bin and returns bin content as reference.
| bin | Global lookup bin |
SurfaceVector at given bin Implements Acts::SurfaceArray::ISurfaceGridLookup.
|
overridevirtual |
Performs a lookup at pos, but returns neighbors as well.
| position | Lookup position |
| direction | Lookup direction |
SurfaceVector at given bin. Copy of all bins selected 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.