ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SurfaceArray::ISurfaceGridLookup Struct Referenceabstract

Base interface for all surface lookups. More...

#include <acts/blob/master/Core/include/Acts/Surfaces/SurfaceArray.hpp>

+ Inheritance diagram for Acts::SurfaceArray::ISurfaceGridLookup:

Public Member Functions

virtual void fill (const GeometryContext &gctx, const SurfaceVector &surfaces)=0
 Fill provided surfaces into the contained Grid.
 
virtual size_t completeBinning (const GeometryContext &gctx, const SurfaceVector &surfaces)=0
 Attempts to fix sub-optimal binning by filling closest Surfaces into empty bin.
 
virtual SurfaceVectorlookup (const Vector3D &position)=0
 Performs lookup at pos and returns bin content as reference.
 
virtual const SurfaceVectorlookup (const Vector3D &position) const =0
 Performs lookup at pos and returns bin content as const reference.
 
virtual SurfaceVectorlookup (size_t bin)=0
 Performs lookup at global bin and returns bin content as reference.
 
virtual const SurfaceVectorlookup (size_t bin) const =0
 Performs lookup at global bin and returns bin content as const reference.
 
virtual const SurfaceVectorneighbors (const Vector3D &position) const =0
 Performs a lookup at pos, but returns neighbors as well.
 
virtual size_t size () const =0
 Returns the total size of the grid (including under/overflow bins)
 
virtual Vector3D getBinCenter (size_t bin) const =0
 Gets the center position of bin bin in global coordinates.
 
virtual std::vector< const
IAxis * > 
getAxes () const =0
 Returns copies of the axes used in the grid as AnyAxis.
 
virtual size_t dimensions () const =0
 Get the number of dimensions of the grid.
 
virtual bool isValidBin (size_t bin) const =0
 Checks if global bin is valid.
 
virtual ~ISurfaceGridLookup ()=0
 Pure virtual destructor.
 

Detailed Description

Base interface for all surface lookups.

Definition at line 34 of file SurfaceArray.hpp.

View newest version in sPHENIX GitHub at line 34 of file SurfaceArray.hpp

Constructor & Destructor Documentation

Acts::SurfaceArray::ISurfaceGridLookup::~ISurfaceGridLookup ( )
pure virtualdefault

Pure virtual destructor.

Member Function Documentation

virtual size_t Acts::SurfaceArray::ISurfaceGridLookup::completeBinning ( const GeometryContext gctx,
const SurfaceVector surfaces 
)
pure virtual

Attempts to fix sub-optimal binning by filling closest Surfaces into empty bin.

Parameters
gctxThe current geometry context object, e.g. alignment
surfacesThe surface pointers to fill
Returns
number of bins that were filled

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

Referenced by Acts::SurfaceArrayCreator::completeBinning().

+ Here is the caller graph for this function:

virtual size_t Acts::SurfaceArray::ISurfaceGridLookup::dimensions ( ) const
pure virtual

Get the number of dimensions of the grid.

Returns
number of dimensions

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual void Acts::SurfaceArray::ISurfaceGridLookup::fill ( const GeometryContext gctx,
const SurfaceVector surfaces 
)
pure virtual

Fill provided surfaces into the contained Grid.

Parameters
gctxThe current geometry context object, e.g. alignment
surfacesInput surface pointers

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

Referenced by Acts::SurfaceArrayCreator::surfaceArrayOnCylinder(), Acts::SurfaceArrayCreator::surfaceArrayOnDisc(), and Acts::SurfaceArrayCreator::surfaceArrayOnPlane().

+ Here is the caller graph for this function:

virtual std::vector<const IAxis*> Acts::SurfaceArray::ISurfaceGridLookup::getAxes ( ) const
pure virtual

Returns copies of the axes used in the grid as AnyAxis.

Returns
The axes
Note
This returns copies. Use for introspection and querying.

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

Referenced by Acts::SurfaceArrayCreator::surfaceArrayOnCylinder(), and Acts::SurfaceArrayCreator::surfaceArrayOnDisc().

+ Here is the caller graph for this function:

virtual Vector3D Acts::SurfaceArray::ISurfaceGridLookup::getBinCenter ( size_t  bin) const
pure virtual

Gets the center position of bin bin in global coordinates.

Parameters
binthe global bin index
Returns
The bin center

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual bool Acts::SurfaceArray::ISurfaceGridLookup::isValidBin ( size_t  bin) const
pure virtual

Checks if global bin is valid.

Parameters
binthe global bin index
Returns
bool if the bin is valid
Note
Valid means that the index points to a bin which is not a under or overflow bin or out of range in any axis.

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual SurfaceVector& Acts::SurfaceArray::ISurfaceGridLookup::lookup ( const Vector3D position)
pure virtual

Performs lookup at pos and returns bin content as reference.

Parameters
positionLookup position
Returns
SurfaceVector at given bin

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual const SurfaceVector& Acts::SurfaceArray::ISurfaceGridLookup::lookup ( const Vector3D position) const
pure virtual

Performs lookup at pos and returns bin content as const reference.

Parameters
positionLookup position
Returns
SurfaceVector at given bin

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual SurfaceVector& Acts::SurfaceArray::ISurfaceGridLookup::lookup ( size_t  bin)
pure virtual

Performs lookup at global bin and returns bin content as reference.

Parameters
binGlobal lookup bin
Returns
SurfaceVector at given bin

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual const SurfaceVector& Acts::SurfaceArray::ISurfaceGridLookup::lookup ( size_t  bin) const
pure virtual

Performs lookup at global bin and returns bin content as const reference.

Parameters
binGlobal lookup bin
Returns
SurfaceVector at given bin

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual const SurfaceVector& Acts::SurfaceArray::ISurfaceGridLookup::neighbors ( const Vector3D position) const
pure virtual

Performs a lookup at pos, but returns neighbors as well.

Parameters
positionLookup position
Returns
SurfaceVector at given bin. Copy of all bins selected

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.

virtual size_t Acts::SurfaceArray::ISurfaceGridLookup::size ( ) const
pure virtual

Returns the total size of the grid (including under/overflow bins)

Returns
Size of the grid data structure

Implemented in Acts::SurfaceArray::SurfaceGridLookup< Axes >.


The documentation for this struct was generated from the following files: