|
ACTS
Experiment-independent tracking
|
A cartesian space point grid used for seeding in a cartesian detector geometry. More...
#include <Acts/Seeding/CartesianSpacePointGrid.hpp>
Classes | |
| struct | Config |
| Configuration parameters for the cartesian space point grid. More... | |
Public Types | |
| using | GridBase |
| Type alias for the CRTP base class. | |
| using | XAxisType = GridBase::AxisTypeAt<0> |
| Type alias for the x axis (equidistant binning, open boundaries). | |
| using | YAxisType = GridBase::AxisTypeAt<1> |
| Type alias for the y axis (equidistant binning, open boundaries). | |
| using | ZAxisType = GridBase::AxisTypeAt<2> |
| Type alias for the z axis (equidistant binning, open boundaries). | |
Public Member Functions | |
| CartesianSpacePointGrid (const Config &config, std::unique_ptr< const Logger > logger=getDefaultLogger("CartesianSpacePointGrid", Logging::Level::INFO)) | |
| Construct a cartesian space point grid with the given configuration and an optional logger. | |
| std::optional< std::size_t > | binIndex (float x, float y, float z) const |
| Get the bin index for a space point given its x-, y-, and z-coordinate. | |
| Range1D< float > | computeCoordRange (const SpacePointContainer &spacePoints) const |
| Compute the range of the sorting coordinates in the grid. | |
| std::optional< std::size_t > | insert (const ConstSpacePointProxy &sp) |
| Insert a space point into the grid. | |
| std::optional< std::size_t > | insert (SpacePointIndex index, float x, float y, float z) |
| Insert a space point into the grid. | |
| void | sortBinsByCoord (const SpacePointContainer &spacePoints) |
| Sort the bins in the grid by the space point sorting-coordinate, which is required by some algorithms that operate on the grid. | |
A cartesian space point grid used for seeding in a cartesian detector geometry.
The grid is defined in cartesian coordinates (x,y,z).
Type alias for the CRTP base class.
|
explicit |
Construct a cartesian space point grid with the given configuration and an optional logger.
| config | Configuration for the cartesian grid |
| logger | Optional logger instance for debugging output |
| std::optional< std::size_t > Acts::CartesianSpacePointGrid::binIndex | ( | float | x, |
| float | y, | ||
| float | z ) const |
Get the bin index for a space point given its x-, y-, and z-coordinate.
| x | The x-coordinate of the space point |
| y | The y-coordinate of the space point |
| z | The z-coordinate of the space point |
| Range1D< float > Acts::CartesianSpacePointGrid::computeCoordRange | ( | const SpacePointContainer & | spacePoints | ) | const |
Compute the range of the sorting coordinates in the grid.
This requires the grid to be filled with space points and sorted by coordinate. The sorting can be done with the sortBinsByCoord method.
| spacePoints | The space point container to compute the coordinate range |
| std::optional< std::size_t > Acts::CartesianSpacePointGrid::insert | ( | const ConstSpacePointProxy & | sp | ) |
Insert a space point into the grid.
| sp | The space point to insert |
| std::optional< std::size_t > Acts::CartesianSpacePointGrid::insert | ( | SpacePointIndex | index, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Insert a space point into the grid.
| index | The index of the space point to insert |
| x | The x-coordinate the space point |
| y | The y-coordinate the space point |
| z | The z-coordinate the space point |
| void Acts::CartesianSpacePointGrid::sortBinsByCoord | ( | const SpacePointContainer & | spacePoints | ) |
Sort the bins in the grid by the space point sorting-coordinate, which is required by some algorithms that operate on the grid.
| spacePoints | The space point container to sort the bins by the configured coordinate |