CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MinFunctionSelector.h
Go to the documentation of this file.
1 #ifndef RecoAlgos_MinFunctionSelector_h
2 #define RecoAlgos_MinFunctionSelector_h
3 /* \class MinFunctionSelector
4  *
5  * \author Luca Lista, INFN
6  *
7  * $Id: MinFunctionSelector.h,v 1.2 2012/06/26 21:13:12 wmtan Exp $
8  */
9 
10 template<typename T, double (T::*fun)() const>
12  MinFunctionSelector( double min ) :
13  min_( min ) { }
14  bool operator()( const T & t ) const { return (t.*fun)() >= min_; }
15 private:
16  double min_;
17 };
18 
19 #endif
MinFunctionSelector(double min)
#define min(a, b)
Definition: mlp_lapack.h:161
bool operator()(const T &t) const
long double T