|
ACTS
Experiment-independent tracking
|
Avoiding a map search, the templated BinnedArray class can help ordereing geometrical objects by providing a dedicated BinUtility. More...
#include <Acts/Utilities/BinnedArrayXD.hpp>
Public Member Functions | |
| BinnedArrayXD (const BinnedArrayXD< T > &barr)=delete | |
| Copy constructor. | |
| BinnedArrayXD (const std::vector< std::vector< std::vector< T > > > &grid, std::unique_ptr< const BinUtility > bu) | |
| Constructor with a grid and a BinUtility. | |
| BinnedArrayXD (const std::vector< TAP > &tapvector, std::unique_ptr< const BinUtility > bu) | |
| Constructor with std::vector and a BinUtility. | |
| BinnedArrayXD (T object) | |
| Constructor for single object. | |
| ~BinnedArrayXD () override=default | |
| Destructor. | |
| const std::vector< T > & | arrayObjects () const final |
| Return all unique object. | |
| const BinUtility * | binUtility () const final |
| Return the BinUtility. | |
| T | object (const Vector2 &lposition) const override |
| Same method without bins for backward compatibility. | |
| T | object (const Vector2 &lposition, std::array< std::size_t, 3 > &bins) const final |
| Returns the object in the array from a local position. | |
| T | object (const Vector3 &position) const override |
| Same method without bins for backward compatibility. | |
| T | object (const Vector3 &position, std::array< std::size_t, 3 > &bins) const final |
| Returns the object in the array from a global position. | |
| const std::vector< std::vector< std::vector< T > > > & | objectGrid () const final |
| Return the object grid multiple entries are allowed and wanted. | |
| BinnedArrayXD & | operator= (const BinnedArrayXD< T > &barr)=delete |
| Assignment operator. | |
| Public Member Functions inherited from Acts::BinnedArray< T > | |
| BinnedArray ()=default | |
| Default Constructor - needed for inherited classes. | |
| virtual | ~BinnedArray ()=default |
| Virtual Destructor. | |
Avoiding a map search, the templated BinnedArray class can help ordereing geometrical objects by providing a dedicated BinUtility.
This can be 0D, 1D, 2D, and 3D in regular binning
the type of Binning is given defined through the BinUtility
|
explicit |
Constructor for single object.
| object | The single object to store |
| Acts::BinnedArrayXD< T >::BinnedArrayXD | ( | const std::vector< TAP > & | tapvector, |
| std::unique_ptr< const BinUtility > | bu ) |
Constructor with std::vector and a BinUtility.
| tapvector | is a vector of object and binning position |
| bu | is the unique bin utility for this binned array |
| Acts::BinnedArrayXD< T >::BinnedArrayXD | ( | const std::vector< std::vector< std::vector< T > > > & | grid, |
| std::unique_ptr< const BinUtility > | bu ) |
Constructor with a grid and a BinUtility.
| grid | is the prepared object grid |
| bu | is the unique bin utility for this binned array |
|
delete |
Copy constructor.
|
overridedefault |
Destructor.
|
finalvirtual |
|
finalvirtual |
Return the BinUtility.
Implements Acts::BinnedArray< T >.
|
overridevirtual |
Same method without bins for backward compatibility.
| lposition | is the local position for finding the object |
Reimplemented from Acts::BinnedArray< T >.
|
finalvirtual |
Returns the object in the array from a local position.
| lposition | is the local position for the bin search |
| bins | is the bin triple filled during this access |
Implements Acts::BinnedArray< T >.
|
overridevirtual |
Same method without bins for backward compatibility.
| position | is the global position for the object finding |
Reimplemented from Acts::BinnedArray< T >.
|
finalvirtual |
Returns the object in the array from a global position.
| position | is the global position for the bin search |
| bins | is the bins triple filled during access |
Implements Acts::BinnedArray< T >.
|
finalvirtual |
Return the object grid multiple entries are allowed and wanted.
Implements Acts::BinnedArray< T >.
|
delete |
Assignment operator.