test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MinObjectPairSelector< F > Struct Template Reference

#include <MinObjectPairSelector.h>

Public Member Functions

 MinObjectPairSelector (double min)
 
template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const
 

Private Attributes

F fun_
 
double min_
 

Detailed Description

template<typename F>
struct MinObjectPairSelector< F >

Definition at line 11 of file MinObjectPairSelector.h.

Constructor & Destructor Documentation

template<typename F >
MinObjectPairSelector< F >::MinObjectPairSelector ( double  min)
inline

Definition at line 12 of file MinObjectPairSelector.h.

12  :
13  min_( min ), fun_() { }
T min(T a, T b)
Definition: MathUtil.h:58

Member Function Documentation

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

Definition at line 15 of file MinObjectPairSelector.h.

References MinObjectPairSelector< F >::fun_, and MinObjectPairSelector< F >::min_.

15  {
16  return min_ <= fun_( t1, t2 );
17  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16

Member Data Documentation

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

Definition at line 21 of file MinObjectPairSelector.h.

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

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

Definition at line 20 of file MinObjectPairSelector.h.

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