CMS 3D CMS Logo

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.1 2009/02/24 14:40:26 llista Exp $
8  */
9 
10 template <typename T, double (T::*fun)() const>
13  bool operator()(const T& t) const { return (t.*fun)() >= min_; }
14 
15 private:
16  double min_;
17 };
18 
19 #endif
MinFunctionSelector::min_
double min_
Definition: MinFunctionSelector.h:16
min
T min(T a, T b)
Definition: MathUtil.h:58
MinFunctionSelector
Definition: MinFunctionSelector.h:11
MinFunctionSelector::operator()
bool operator()(const T &t) const
Definition: MinFunctionSelector.h:13
T
long double T
Definition: Basic3DVectorLD.h:48
MinFunctionSelector::MinFunctionSelector
MinFunctionSelector(double min)
Definition: MinFunctionSelector.h:12
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644