ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsFatras::Range< cast_t > Struct Template Reference

Select all objects with an extracted value within the range. More...

#include <ActsFatras/Selectors/SelectorHelpers.hpp>

Public Member Functions

template<typename T>
bool operator() (const T &thing) const
 Check if object meets range value requirement.

Public Attributes

double valMax = std::numeric_limits<double>::max()
 Maximum value threshold for range selection.
double valMin = std::numeric_limits<double>::lowest()
 Minimum value threshold for range selection.

Detailed Description

template<typename cast_t>
struct ActsFatras::Range< cast_t >

Select all objects with an extracted value within the range.

The range is defined as the left, half-open interval within the cuts.

Member Function Documentation

◆ operator()()

template<typename cast_t>
template<typename T>
bool ActsFatras::Range< cast_t >::operator() ( const T & thing) const

Check if object meets range value requirement.

Parameters
thingThe object to evaluate using cast_t
Returns
true if extracted value is within [valMin, valMax), false otherwise

Member Data Documentation

◆ valMax

template<typename cast_t>
double ActsFatras::Range< cast_t >::valMax = std::numeric_limits<double>::max()

Maximum value threshold for range selection.

◆ valMin

template<typename cast_t>
double ActsFatras::Range< cast_t >::valMin = std::numeric_limits<double>::lowest()

Minimum value threshold for range selection.