Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
Utils
interface
MinObjectPairSelector.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_MinObjectPairSelector_h
2
#define RecoAlgos_MinObjectPairSelector_h
3
/* \class MinObjectPairSelector
4
*
5
* \author Luca Lista, INFN
6
*
7
* $Id: MinObjectPairSelector.h,v 1.3 2007/06/18 18:33:54 llista Exp $
8
*/
9
10
template
<
typename
F>
11
struct
MinObjectPairSelector
{
12
MinObjectPairSelector
(
double
min
) :
min_
(min),
fun_
() {}
13
template
<
typename
T1,
typename
T2>
14
bool
operator()
(
const
T1& t1,
const
T2& t2)
const
{
15
return
min_
<=
fun_
(t1, t2);
16
}
17
18
private
:
19
double
min_
;
20
F
fun_
;
21
};
22
23
#endif
MinObjectPairSelector::MinObjectPairSelector
MinObjectPairSelector(double min)
Definition:
MinObjectPairSelector.h:12
MinObjectPairSelector
Definition:
MinObjectPairSelector.h:11
MinObjectPairSelector::min_
double min_
Definition:
MinObjectPairSelector.h:19
MinObjectPairSelector::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition:
MinObjectPairSelector.h:14
min
T min(T a, T b)
Definition:
MathUtil.h:58
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:163
MinObjectPairSelector::fun_
F fun_
Definition:
MinObjectPairSelector.h:20
Generated for CMSSW Reference Manual by
1.8.5