Struct SurfaceArray::SingleElementLookup¶
Defined in File SurfaceArray.hpp
Nested Relationships¶
This struct is a nested type of Class SurfaceArray.
Inheritance Relationships¶
Base Type¶
public Acts::SurfaceArray::ISurfaceGridLookup
(Struct SurfaceArray::ISurfaceGridLookup)
Struct Documentation¶
-
struct
Acts::SurfaceArray
::
SingleElementLookup
: public Acts::SurfaceArray::ISurfaceGridLookup Lookup implementation which wraps one element and always returns this element when lookup is called.
Public Functions
-
SingleElementLookup
(SurfaceVector::value_type element) Default constructor.
- Parameters
element
: the one and only element.
-
size_t
completeBinning
(const GeometryContext&, const SurfaceVector&) override Comply with concept and provide completeBinning method.
- Note
Does nothing
-
size_t
dimensions
() const override Get the number of dimensions.
- Return
always 0
-
void
fill
(const GeometryContext&, const SurfaceVector&) override Comply with concept and provide fill method.
- Note
Does nothing
-
std::vector<const IAxis*>
getAxes
() const override Returns an empty vector of
AnyAxis
.- Return
empty vector
-
Vector3
getBinCenter
(size_t) const override Gets the bin center, but always returns (0, 0, 0)
- Return
(0, 0, 0)
- Parameters
bin
: is ignored
-
bool
isValidBin
(size_t) const override Returns if the bin is valid (it is)
- Return
always true
- Parameters
bin
: is ignored
-
SurfaceVector &
lookup
(const Vector3&) override Lookup, always returns
element
.- Return
reference to vector containing only
element
- Parameters
position
: is ignored
-
const SurfaceVector &
lookup
(const Vector3&) const override Lookup, always returns
element
.- Return
reference to vector containing only
element
- Parameters
position
: is ignored
-
SurfaceVector &
lookup
(size_t) override Lookup, always returns
element
.- Return
reference to vector containing only
element
- Parameters
bin
: is ignored
-
const SurfaceVector &
lookup
(size_t) const override Lookup, always returns
element
.- Return
reference to vector containing only
element
- Parameters
bin
: is ignored
-
const SurfaceVector &
neighbors
(const Vector3&) const override Lookup, always returns
element
.- Return
reference to vector containing only
element
- Parameters
position
: is ignored
-
size_t
size
() const override returns 1
- Return
1
-