ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::IGrid Class Referenceabstract

Base class for all grid types. More...

#include <Acts/Utilities/IGrid.hpp>

Inheritance diagram for Acts::IGrid:
[legend]

Public Member Functions

virtual const IAxisaxis (std::size_t index) const
 Get the axis object for a given index.
virtual std::size_t dimensions () const =0
 Get the number of dimensions of the grid.
virtual const IMultiAxismultiAxisAny () const =0
 Get the multi-axis object for the grid.

Protected Member Functions

virtual void toStream (std::ostream &os) const =0
using AnyIndexType = IMultiAxis::AnyLocalBins
 Type alias for dynamic index type (indices as vector of std::size_t).
using AnyPointType = IMultiAxis::AnyPoint
 Type alias for dynamic point type (coordinates as vector of doubles).
using AnyAxesVector = IMultiAxis::AnyAxesVector
 Dynamically sized vector of (non-owning) pointers to the contained axes.
virtual std::type_info const & valueType () const =0
 Type-erased interface to access the contents of the grid.
virtual AnyAxesVector axes () const
 Get a dynamically sized vector of axis objects for inspection.
virtual AnyPointType lowerLeftBinEdgeAny (const AnyIndexType &indices) const
 Get the lower left edge of a bin for a given set of indices.
virtual AnyPointType upperRightBinEdgeAny (const AnyIndexType &indices) const
 Get the upper right edge of a bin for a given set of indices.
virtual AnyPointType binCenterAny (const AnyIndexType &indices) const
 Get the center of a bin for a given set of indices.
virtual AnyIndexType numLocalBinsAny () const
 Get the number of local bins for a given set of indices.
virtual std::any atLocalBinsAny (const AnyIndexType &indices) const =0
 Get the value of a bin for a given set of indices.
virtual std::any atLocalBinsAny (const AnyIndexType &indices)=0
 Get the value of a bin for a given set of indices.

Detailed Description

Base class for all grid types.

Member Function Documentation

◆ atLocalBinsAny() [1/2]

◆ atLocalBinsAny() [2/2]

◆ axes()

◆ axis()

◆ binCenterAny()

virtual AnyPointType Acts::IGrid::binCenterAny ( const AnyIndexType & indices) const
virtual

Get the center of a bin for a given set of indices.

Parameters
indicesThe indices to get the center of the bin for
Returns
The center of the bin
Deprecated
Use grid.multiAxisAny().getBinCenterAny(indices) instead

◆ dimensions()

◆ lowerLeftBinEdgeAny()

virtual AnyPointType Acts::IGrid::lowerLeftBinEdgeAny ( const AnyIndexType & indices) const
virtual

Get the lower left edge of a bin for a given set of indices.

Parameters
indicesThe indices to get the lower left edge of the bin for
Returns
The lower left edge of the bin
Deprecated
Use grid.multiAxisAny().getLowerLeftBinEdgeAny(indices) instead

◆ multiAxisAny()

◆ numLocalBinsAny()

virtual AnyIndexType Acts::IGrid::numLocalBinsAny ( ) const
virtual

Get the number of local bins for a given set of indices.

Returns
The number of local bins
Deprecated
Use grid.multiAxisAny().getNBinsAny() instead

◆ toStream()

◆ upperRightBinEdgeAny()

virtual AnyPointType Acts::IGrid::upperRightBinEdgeAny ( const AnyIndexType & indices) const
virtual

Get the upper right edge of a bin for a given set of indices.

Parameters
indicesThe indices to get the upper right edge of the bin for
Returns
The upper right edge of the bin
Deprecated
Use grid.multiAxisAny().getUpperRightBinEdgeAny(indices) instead

◆ valueType()