Template Class BinnedArray¶
Defined in File BinnedArray.hpp
Inheritance Relationships¶
Derived Type¶
public Acts::BinnedArrayXD< T >
(Template Class BinnedArrayXD)
Class Documentation¶
-
template<class
T
>
classActs
::
BinnedArray
¶ Pure virtual base class for Binned Array to avoid map searches.
there is only one restriction: T must be of pointer type in order to be initialized withh nullptr and to allow for nullptr return type
the BinnedArray is designed for 0D, 1D, 2D, and 3D binning
Subclassed by Acts::BinnedArrayXD< T >
Public Functions
-
BinnedArray
() = default¶ Default Constructor - needed for inherited classes.
-
~BinnedArray
() = default¶ Virtual Destructor.
-
const std::vector<T> &
arrayObjects
() const = 0¶ Return all unqiue object.
- Note
this is the accessor to the
- Return
the vector of all array objects
-
const BinUtility *
binUtility
() const = 0¶ Return the BinUtility.
if returned 0 it is a 0D array
- Return
plain pointer to the bin utility
-
T
object
(const Vector2 &lposition, std::array<size_t, 3> &bins) const = 0¶ Returns the object in the associated bin according the local position.
- Return
the object according to the estimated bin
- Parameters
lposition
: is the local position for the object retrievalbins
: is the bin triple to filled
-
T
object
(const Vector2 &lposition) const¶ Same method without bins for backward compatibility.
- Return
the object according to the estimated bin
- Parameters
lposition
: is the local position for finding the obect
-
T
object
(const Vector3 &position, std::array<size_t, 3> &bin) const = 0¶ Returns the object in the associated bin according the local position.
- Return
the object according to the estimated bin
- Parameters
position
: is the global position for the object retrievalbin
: is the bin triple filled
-
T
object
(const Vector3 &position) const¶ Same method without bins for backward compatibility.
- Return
the object according to the estimated bin
- Parameters
position
: is the global position for the object finding