Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
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
Generated for CMSSW Reference Manual by
1.8.5