Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SurfaceArray::SingleElementLookup Struct Reference

Lookup implementation which wraps one element and always returns this element when lookup is called. More...

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

+ Inheritance diagram for Acts::SurfaceArray::SingleElementLookup:
+ Collaboration diagram for Acts::SurfaceArray::SingleElementLookup:

Public Member Functions

 SingleElementLookup (SurfaceVector::value_type element)
 Default constructor.
 
- Public Member Functions inherited from Acts::SurfaceArray::ISurfaceGridLookup
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 Vector3 &position)=0
 Performs lookup at pos and returns bin content as reference.
 
virtual const SurfaceVectorlookup (const Vector3 &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 Vector3 &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 Vector3 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 std::vector< BinningValuebinningValues () const
 The binning values described by this surface grid lookup They are in order of the axes (optional) and empty for eingle lookups.
 
virtual ~ISurfaceGridLookup ()=0
 Pure virtual destructor.
 

Detailed Description

Lookup implementation which wraps one element and always returns this element when lookup is called.

Definition at line 353 of file SurfaceArray.hpp.

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

Constructor & Destructor Documentation

Acts::SurfaceArray::SingleElementLookup::SingleElementLookup ( SurfaceVector::value_type  element)
inline

Default constructor.

Parameters
elementthe one and only element.

Definition at line 356 of file SurfaceArray.hpp.

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


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