Main Page
Namespaces
Classes
Package Documentation
CommonTools
Utils
interface
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>
11
struct
MinFunctionSelector
{
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::MinFunctionSelector
MinFunctionSelector(double min)
Definition:
MinFunctionSelector.h:12
min
T min(T a, T b)
Definition:
MathUtil.h:58
MinFunctionSelector
Definition:
MinFunctionSelector.h:11
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
MinFunctionSelector::operator()
bool operator()(const T &t) const
Definition:
MinFunctionSelector.h:14
T
long double T
Definition:
Basic3DVectorLD.h:66
MinFunctionSelector::min_
double min_
Definition:
MinFunctionSelector.h:16
Generated for CMSSW Reference Manual by
1.8.11