File GeometryObjectSorter.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

template<class T>
class DistanceSorterT : public std::binary_function<T, T, bool>
#include <Acts/Geometry/GeometryObjectSorter.hpp>

This will check on absolute distance.

Public Functions

inline DistanceSorterT(BinningValue bValue, Vector3 reference)

Constructor from a binning value.

Parameters
  • bValue – is the value in which the binning is done

  • reference – is the reference point

inline bool operator()(T one, T two) const

Comparison operator.

Template Parameters
  • one – first object

  • two – second object

Returns

boolen indicator

Private Members

BinningValue m_binningValue

the binning value

T m_reference
double m_refEta
double m_refPhi
double m_refR
template<class T>
class GeometryObjectSorterT : public std::binary_function<T, T, bool>
#include <Acts/Geometry/GeometryObjectSorter.hpp>

Public Functions

inline GeometryObjectSorterT(const GeometryContext &gctx, BinningValue bValue, std::shared_ptr<const Transform3> transform = nullptr)

Constructor from a binning value.

Parameters
  • gctx – The geometry context to use

  • bValue – is the value in which the binning is done

  • transform – is an optional transform to be performed

inline bool operator()(T one, T two) const

Comparison operator.

Template Parameters
  • one – first object

  • two – second object

Returns

boolen indicator

Protected Attributes

std::reference_wrapper<const GeometryContext> m_context
ObjectSorterT<Vector3> m_objectSorter
std::shared_ptr<const Transform3> m_transform
template<class T>
class ObjectSorterT : public std::binary_function<T, T, bool>
#include <Acts/Geometry/GeometryObjectSorter.hpp>

Public Functions

inline ObjectSorterT(BinningValue bValue)

Constructor from a binning value.

Parameters

bValue – is the value in which the binning is done

inline BinningValue binningValue() const
inline bool operator()(T one, T two) const

Comparison operator.

Parameters
  • one – first object

  • two – second object

Returns

boolen indicator

Private Members

BinningValue m_binningValue

the binning value