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::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition:
MinObjectPairSelector.h:14
MinObjectPairSelector::min_
double min_
Definition:
MinObjectPairSelector.h:19
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
SiStripPI::min
Definition:
SiStripPayloadInspectorHelper.h:178
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:163
MinObjectPairSelector::fun_
F fun_
Definition:
MinObjectPairSelector.h:20
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Generated for CMSSW Reference Manual by
1.8.14