CMS 3D CMS Logo

MaxObjectPairSelector< F > Struct Template Reference

#include <PhysicsTools/Utilities/interface/MaxObjectPairSelector.h>

List of all members.

Public Member Functions

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

Private Attributes

fun_
double max_


Detailed Description

template<typename F>
struct MaxObjectPairSelector< F >

Definition at line 11 of file MaxObjectPairSelector.h.


Constructor & Destructor Documentation

template<typename F>
MaxObjectPairSelector< F >::MaxObjectPairSelector ( double  max  )  [inline]

Definition at line 12 of file MaxObjectPairSelector.h.

00012                                       : 
00013     max_( max ), fun_() { }


Member Function Documentation

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

Definition at line 15 of file MaxObjectPairSelector.h.

References MaxObjectPairSelector< F >::fun_, and MaxObjectPairSelector< F >::max_.

00015                                                         { 
00016     return fun_( t1, t2 ) <= max_;
00017   }


Member Data Documentation

template<typename F>
F MaxObjectPairSelector< F >::fun_ [private]

Definition at line 21 of file MaxObjectPairSelector.h.

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

template<typename F>
double MaxObjectPairSelector< F >::max_ [private]

Definition at line 20 of file MaxObjectPairSelector.h.

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


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:28:04 2009 for CMSSW by  doxygen 1.5.4