1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef CommonTools_Utils_FunctionMinSelector_h
#define CommonTools_Utils_FunctionMinSelector_h
/* \class FunctionMinSelector
*
* \author Luca Lista, INFN
*
* $Id: FunctionMinSelector.h,v 1.1 2009/02/24 14:40:26 llista Exp $
*/
template <typename F>
struct FunctionMinSelector {
explicit FunctionMinSelector(double minCut) : minCut_(minCut) {}
bool operator()(const typename F::type& t) const { return f(t) >= minCut_; }
private:
F f;
double minCut_;
};
#endif
|