CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
RangeObjectPairSelector< F > Struct Template Reference

#include <RangeObjectPairSelector.h>

Public Types

typedef F function
 

Public Member Functions

template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const
 
 RangeObjectPairSelector (double min, double max, const F &fun)
 
 RangeObjectPairSelector (double min, double max)
 

Private Attributes

F fun_
 
double max_
 
double min_
 

Detailed Description

template<typename F>
struct RangeObjectPairSelector< F >

Definition at line 11 of file RangeObjectPairSelector.h.

Member Typedef Documentation

template<typename F >
typedef F RangeObjectPairSelector< F >::function

Definition at line 12 of file RangeObjectPairSelector.h.

Constructor & Destructor Documentation

template<typename F >
RangeObjectPairSelector< F >::RangeObjectPairSelector ( double  min,
double  max,
const F fun 
)
inline
template<typename F >
RangeObjectPairSelector< F >::RangeObjectPairSelector ( double  min,
double  max 
)
inline

Member Function Documentation

template<typename F >
template<typename T1 , typename T2 >
bool RangeObjectPairSelector< F >::operator() ( const T1 &  t1,
const T2 &  t2 
) const
inline

Definition at line 18 of file RangeObjectPairSelector.h.

References RangeObjectPairSelector< F >::fun_, RangeObjectPairSelector< F >::max_, RangeObjectPairSelector< F >::min_, and x.

18  {
19  double x = fun_( t1, t2 );
20  return ( min_ <= x && x <= max_ );
21  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16

Member Data Documentation

template<typename F >
F RangeObjectPairSelector< F >::fun_
private

Definition at line 25 of file RangeObjectPairSelector.h.

Referenced by RangeObjectPairSelector< F >::operator()().

template<typename F >
double RangeObjectPairSelector< F >::max_
private

Definition at line 24 of file RangeObjectPairSelector.h.

Referenced by RangeObjectPairSelector< F >::operator()().

template<typename F >
double RangeObjectPairSelector< F >::min_
private

Definition at line 24 of file RangeObjectPairSelector.h.

Referenced by RangeObjectPairSelector< F >::operator()().