ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GeometryObjectSorterT< T > Class Template Reference

Sorter functor for geometry objects by reference position. More...

#include <Acts/Geometry/GeometryObjectSorter.hpp>

Collaboration diagram for Acts::GeometryObjectSorterT< T >:
[legend]

Public Member Functions

 GeometryObjectSorterT (const GeometryContext &gctx, AxisDirection aDir, std::shared_ptr< const Transform3 > transform=nullptr)
 Constructor from a sorting direction.
bool operator() (const T &one, const T &two) const
 Comparison operator.

Protected Attributes

std::reference_wrapper< const GeometryContextm_context
 Geometry context for the sorting operation.
ObjectSorterT< Vector3m_objectSorter
 The sorting function object for vectors.
std::shared_ptr< const Transform3m_transform
 Optional transformation to apply before sorting.

Detailed Description

template<class T>
class Acts::GeometryObjectSorterT< T >

Sorter functor for geometry objects by reference position.

Constructor & Destructor Documentation

◆ GeometryObjectSorterT()

template<class T>
Acts::GeometryObjectSorterT< T >::GeometryObjectSorterT ( const GeometryContext & gctx,
AxisDirection aDir,
std::shared_ptr< const Transform3 > transform = nullptr )

Constructor from a sorting direction.

Parameters
gctxThe geometry context to use
aDiris the direction in which the sorting is done
transformis an optional transform to be performed

Member Function Documentation

◆ operator()()

template<class T>
bool Acts::GeometryObjectSorterT< T >::operator() ( const T & one,
const T & two ) const

Comparison operator.

Parameters
oneis the first object
twois the second object
Returns
boolean indicator