![]() |
ATLAS Offline Software
|
#include <BinnedArray2D.h>
Public Member Functions | |
BinnedArray2D ()=default | |
BinnedArray2D (BinnedArray2D &&)=default | |
BinnedArray2D & | operator= (BinnedArray2D &&)=default |
~BinnedArray2D ()=default | |
BinnedArray2D (const std::vector< std::pair< SharedObject< T >, Amg::Vector3D >> &tclassvector, const BinUtility &bingen) | |
Constructors with arguments. More... | |
BinnedArray2D (const std::vector< std::pair< SharedObject< T >, Amg::Vector3D >> &tclassvector, BinUtility &&bingen) | |
BinnedArray2D (const BinnedArray2D &barr) | |
Copy Constructor ! More... | |
BinnedArray2D & | operator= (const BinnedArray2D &barr) |
Assignment operator. More... | |
BinnedArray2D * | clone () const |
Implizit Constructor. More... | |
T * | object (const Amg::Vector2D &lp) const |
Returns the pointer to the templated class object from the BinnedArray, it returns nullptr if not defined;. More... | |
T * | object (const Amg::Vector3D &gp) const |
Returns the pointer to the templated class object from the BinnedArray it returns nullptr if not defined;. More... | |
T * | entryObject (const Amg::Vector3D &pos) const |
Returns the pointer to the templated class object from the BinnedArray -entry point. More... | |
T * | nextObject (const Amg::Vector3D &gp, const Amg::Vector3D &mom, bool associatedResult=true) const |
Returns the pointer to the templated class object from the BinnedArray. More... | |
BinnedArraySpan< T *const > | arrayObjects () |
Return all objects of the Array non-const T. More... | |
BinnedArraySpan< T const *const > | arrayObjects () const |
Return all objects of the Array const T. More... | |
unsigned int | arrayObjectsNumber () const |
Number of Entries in the Array. More... | |
const BinUtility * | binUtility () const |
Return the BinUtility. More... | |
Private Member Functions | |
void | createArrayCache () const |
void | initialize (const std::vector< std::pair< SharedObject< T >, Amg::Vector3D >> &tclassvector) |
vector of pointers to the class T More... | |
Private Attributes | |
std::vector< std::vector< SharedObject< T > > > | m_array {} |
1D vector of cached not owning pointers to class T More... | |
CxxUtils::CachedUniquePtr< std::vector< T * > > | m_arrayObjects {nullptr} |
binUtility for retrieving and filling the Array More... | |
BinUtility | m_binUtility {} |
Avoiding a map search, the templated BinnedArray class can help ordereing geometrical objects by providing a dedicated BinUtility.
dedicated for 2-dim equidistant binning
Definition at line 36 of file BinnedArray2D.h.
|
default |
|
default |
|
default |
|
inline |
|
inline |
Definition at line 56 of file BinnedArray2D.h.
|
inline |
|
inlinevirtual |
Return all objects of the Array non-const T.
Implements Trk::BinnedArray< T >.
Definition at line 133 of file BinnedArray2D.h.
|
inlinevirtual |
Return all objects of the Array const T.
Implements Trk::BinnedArray< T >.
Definition at line 140 of file BinnedArray2D.h.
|
inlinevirtual |
Number of Entries in the Array.
Implements Trk::BinnedArray< T >.
Definition at line 147 of file BinnedArray2D.h.
|
inlinevirtual |
Return the BinUtility.
Implements Trk::BinnedArray< T >.
Definition at line 153 of file BinnedArray2D.h.
|
inlinevirtual |
Implizit Constructor.
Implements Trk::BinnedArray< T >.
Definition at line 84 of file BinnedArray2D.h.
|
inlineprivate |
Definition at line 156 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray -entry point.
Implements Trk::BinnedArray< T >.
Definition at line 109 of file BinnedArray2D.h.
|
inlineprivate |
vector of pointers to the class T
Definition at line 170 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray.
Implements Trk::BinnedArray< T >.
Definition at line 116 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray, it returns nullptr if not defined;.
Implements Trk::BinnedArray< T >.
Definition at line 89 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray it returns nullptr if not defined;.
Implements Trk::BinnedArray< T >.
Definition at line 99 of file BinnedArray2D.h.
|
default |
|
inline |
|
private |
1D vector of cached not owning pointers to class T
Definition at line 189 of file BinnedArray2D.h.
|
private |
binUtility for retrieving and filling the Array
Definition at line 191 of file BinnedArray2D.h.
|
private |
Definition at line 193 of file BinnedArray2D.h.