ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSelector.cxx File Reference
Include dependency graph for TrackSelector.cxx:

Go to the source code of this file.

Functions

template<typename T, typename U = T>
bool select_min (const T &x, const std::vector< T > &xbins, const U &y, const std::vector< U > &ycuts)
 do we really need these ?
template<typename T, typename U = T>
bool select_max (const T &x, const std::vector< T > &xbins, const U &y, const std::vector< U > &ycuts)

Detailed Description

Date
Sun 26 Jul 2026 10:22:51 BST

Definition in file TrackSelector.cxx.

Function Documentation

◆ select_max()

template<typename T, typename U = T>
bool select_max ( const T & x,
const std::vector< T > & xbins,
const U & y,
const std::vector< U > & ycuts )

Definition at line 47 of file TrackSelector.cxx.

48 { return y<=ycuts.at( IDTPM2::bins::find_bin( xbins, x ) ); }
#define y
#define x
size_t find_bin(const std::vector< T > &v, const U &x)
Definition find_bin.h:24

◆ select_min()

template<typename T, typename U = T>
bool select_min ( const T & x,
const std::vector< T > & xbins,
const U & y,
const std::vector< U > & ycuts )

do we really need these ?

? I mean, like really ? all they do is return a bool if it is less than some value, these make like more complicated that just putting in the lines directly you could get round these with just a single function, just by passing in the value to be tested as well

Definition at line 43 of file TrackSelector.cxx.

44 { return y>=ycuts.at( IDTPM2::bins::find_bin( xbins, x ) ); }