ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SurfaceBinningMatcher Struct Reference

Helper to compare surfaces for binning equivalence. More...

#include <Acts/Geometry/SurfaceBinningMatcher.hpp>

Collaboration diagram for Acts::SurfaceBinningMatcher:
[legend]

Public Types

using Range = std::pair<double, double>
 The binning tolerance parameters.

Public Member Functions

 SurfaceBinningMatcher (const std::vector< Range > &tolpars)
 Constructor with tolerance parameters.
bool operator() (const Acts::GeometryContext &gctx, Acts::AxisDirection aDir, const Acts::Surface *one, const Acts::Surface *other) const
 Check function for surface equivalent.

Public Attributes

std::vector< Rangetolerances
 Tolerance ranges for each axis direction.

Detailed Description

Helper to compare surfaces for binning equivalence.

Constructor & Destructor Documentation

◆ SurfaceBinningMatcher()

Acts::SurfaceBinningMatcher::SurfaceBinningMatcher ( const std::vector< Range > & tolpars)
explicit

Constructor with tolerance parameters.

Parameters
tolparsThe tolerance ranges for binning comparison

Member Function Documentation

◆ operator()()

bool Acts::SurfaceBinningMatcher::operator() ( const Acts::GeometryContext & gctx,
Acts::AxisDirection aDir,
const Acts::Surface * one,
const Acts::Surface * other ) const

Check function for surface equivalent.

Parameters
gctx[in] gctx the geometry context for this check
aDirthe axis direction value for the binning
onefirst surface for checking
othersecond surface for checking
Returns
True if surfaces are binning-equivalent

Member Data Documentation

◆ tolerances

std::vector<Range> Acts::SurfaceBinningMatcher::tolerances
Initial value:
{static_cast<int>(numAxisDirections()),
{0., 0.}}
constexpr std::size_t numAxisDirections()
Returns the total number of axis directions.
Definition AxisDefinitions.hpp:43

Tolerance ranges for each axis direction.