Main Page
Namespaces
Classes
Package Documentation
CommonTools
Utils
interface
MaxObjectPairSelector.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_MaxObjectPairSelector_h
2
#define RecoAlgos_MaxObjectPairSelector_h
3
/* \class MaxObjectPairSelector
4
*
5
* \author Luca Lista, INFN
6
*
7
* $Id: MaxObjectPairSelector.h,v 1.3 2007/06/18 18:33:53 llista Exp $
8
*/
9
10
template
<
typename
F>
11
struct
MaxObjectPairSelector
{
12
MaxObjectPairSelector
(
double
max
) :
max_
(max),
fun_
() {}
13
template
<
typename
T1,
typename
T2>
14
bool
operator()
(
const
T1&
t1
,
const
T2&
t2
)
const
{
15
return
fun_
(t1, t2) <=
max_
;
16
}
17
18
private
:
19
double
max_
;
20
F
fun_
;
21
};
22
23
#endif
MaxObjectPairSelector::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition:
MaxObjectPairSelector.h:14
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
SiStripPI::max
Definition:
SiStripPayloadInspectorHelper.h:169
MaxObjectPairSelector::MaxObjectPairSelector
MaxObjectPairSelector(double max)
Definition:
MaxObjectPairSelector.h:12
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:163
MaxObjectPairSelector::fun_
F fun_
Definition:
MaxObjectPairSelector.h:20
MaxObjectPairSelector::max_
double max_
Definition:
MaxObjectPairSelector.h:19
MaxObjectPairSelector
Definition:
MaxObjectPairSelector.h:11
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Generated for CMSSW Reference Manual by
1.8.11