Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
JetMETCorrections
InterpolationTables
interface
ComplexComparesAbs.h
Go to the documentation of this file.
1
#ifndef NPSTAT_COMPLEXCOMPARESABS_HH_
2
#define NPSTAT_COMPLEXCOMPARESABS_HH_
3
14
#include <cmath>
15
#include <complex>
16
17
namespace
npstat
{
23
template
<
class
T>
24
struct
ComplexComparesAbs
{
25
inline
static
bool
less
(
const
T
&
l
,
const
T
&
r
) {
return
l
<
r
; }
26
27
inline
static
bool
more
(
const
T
&
l
,
const
T
&
r
) {
return
l
>
r
; }
28
};
29
30
template
<
class
T>
31
struct
ComplexComparesAbs
<
std
::complex<T> > {
32
inline
static
bool
less
(
const
std::complex<T>&
l
,
const
std::complex<T>&
r
) {
return
std::abs
(
l
) <
std::abs
(
r
); }
33
34
inline
static
bool
more
(
const
std::complex<T>&
l
,
const
std::complex<T>&
r
) {
return
std::abs
(
l
) >
std::abs
(
l
); }
35
};
36
}
// namespace npstat
37
38
#endif // NPSTAT_COMPLEXCOMPARESABS_HH_
npstat::ComplexComparesAbs< std::complex< T > >::less
static bool less(const std::complex< T > &l, const std::complex< T > &r)
Definition:
ComplexComparesAbs.h:32
npstat::ComplexComparesAbs::less
static bool less(const T &l, const T &r)
Definition:
ComplexComparesAbs.h:25
npstat
Definition:
AbsArrayProjector.h:14
npstat::ComplexComparesAbs
Definition:
ComplexComparesAbs.h:24
cmsLHEtoEOSManager.l
l
Definition:
cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
std
Definition:
JetResolutionObject.h:76
npstat::ComplexComparesAbs< std::complex< T > >::more
static bool more(const std::complex< T > &l, const std::complex< T > &r)
Definition:
ComplexComparesAbs.h:34
T
long double T
Definition:
Basic3DVectorLD.h:48
npstat::ComplexComparesAbs::more
static bool more(const T &l, const T &r)
Definition:
ComplexComparesAbs.h:27
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
Generated for CMSSW Reference Manual by
1.8.16