Main Page
Namespaces
Classes
Package Documentation
DQMOffline
JetMET
interface
SusyDQM
special_less.h
Go to the documentation of this file.
1
#ifndef SPECIAL_LESS
2
#define SPECIAL_LESS
3
4
#include <functional>
5
6
struct
fabs_less
{
7
bool
operator()
(
const
double
x
,
const
double
y
)
const
{
8
return
fabs(x) < fabs(y);
9
}
10
};
11
12
template
<
class
T>
13
struct
pt_less
: std::binary_function <T,T,bool> {
14
bool
operator()
(
const
T
&
x
,
const
T
&
y
)
const
15
{
return
x.Pt() < y.Pt();}
16
};
17
18
template
<
class
T>
19
struct
pair2_less
: std::binary_function <T,T,bool> {
20
bool
operator()
(
const
T
&
x
,
const
T
&
y
)
const
21
{
return
x.second < y.second;}
22
};
23
24
#endif
fabs_less
Definition:
special_less.h:6
pt_less
Definition:
special_less.h:13
pair2_less
Definition:
special_less.h:19
fabs_less::operator()
bool operator()(const double x, const double y) const
Definition:
special_less.h:7
DDAxes::y
DDAxes::x
T
long double T
Definition:
Basic3DVectorLD.h:57
Generated for CMSSW Reference Manual by
1.8.11