ATLAS Offline Software
|
#include <BinnedArray2D.h>
Public Member Functions | |
BinnedArray2D () | |
Default Constructor - needed for inherited classes. More... | |
BinnedArray2D (const std::vector< std::pair< SharedObject< T >, Amg::Vector3D >> &tclassvector, BinUtility *bingen) | |
Constructor with std::vector and a BinUtility. More... | |
BinnedArray2D (const BinnedArray2D &barr) | |
Copy Constructor - copies only pointers ! More... | |
BinnedArray2D & | operator= (const BinnedArray2D &barr) |
Assignment operator. More... | |
BinnedArray2D * | clone () const |
Implizit Constructor. More... | |
~BinnedArray2D () | |
Virtual Destructor. More... | |
T * | object (const Amg::Vector2D &lp) const |
Returns the pointer to the templated class object from the BinnedArray, it returns 0 if not defined;. More... | |
T * | object (const Amg::Vector3D &gp) const |
Returns the pointer to the templated class object from the BinnedArray it returns 0 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 |
vector of pointers to the class T More... | |
Private Attributes | |
std::vector< std::vector< SharedObject< T > > > | m_array |
forced 1D vector of pointers to class T More... | |
CxxUtils::CachedUniquePtr< std::vector< T * > > | m_arrayObjects |
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.
|
inline |
Default Constructor - needed for inherited classes.
Definition at line 41 of file BinnedArray2D.h.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Return all objects of the Array non-const T.
Implements Trk::BinnedArray< T >.
Definition at line 172 of file BinnedArray2D.h.
|
inlinevirtual |
Return all objects of the Array const T.
Implements Trk::BinnedArray< T >.
Definition at line 179 of file BinnedArray2D.h.
|
inlinevirtual |
Number of Entries in the Array.
Implements Trk::BinnedArray< T >.
Definition at line 186 of file BinnedArray2D.h.
|
inlinevirtual |
Return the BinUtility.
Implements Trk::BinnedArray< T >.
Definition at line 192 of file BinnedArray2D.h.
|
inlinevirtual |
Implizit Constructor.
Implements Trk::BinnedArray< T >.
Definition at line 117 of file BinnedArray2D.h.
|
inlineprivate |
vector of pointers to the class T
Definition at line 195 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 148 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray.
Implements Trk::BinnedArray< T >.
Definition at line 156 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray, it returns 0 if not defined;.
Implements Trk::BinnedArray< T >.
Definition at line 125 of file BinnedArray2D.h.
|
inlinevirtual |
Returns the pointer to the templated class object from the BinnedArray it returns 0 if not defined;.
Implements Trk::BinnedArray< T >.
Definition at line 137 of file BinnedArray2D.h.
|
inline |
|
private |
forced 1D vector of pointers to class T
Definition at line 214 of file BinnedArray2D.h.
|
private |
binUtility for retrieving and filling the Array
Definition at line 216 of file BinnedArray2D.h.
|
private |
Definition at line 218 of file BinnedArray2D.h.