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
n
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
c
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
src
RecoMET
METPUSubtraction
src
DeepMETHelper.cc
Go to the documentation of this file.
1
#include "
RecoMET/METPUSubtraction/interface/DeepMETHelp.h
"
2
#include <cmath>
3
4
namespace
deepmet_helper
{
5
float
scale_and_rm_outlier
(
float
val
,
float
scale
) {
6
float
ret_val =
val
*
scale
;
7
if
(
std::isnan
(ret_val) || ret_val > 1e6 || ret_val < -1e6)
8
return
0.;
9
return
ret_val;
10
}
11
12
float
rm_outlier
(
float
val
) {
13
if
(
std::isnan
(
val
) ||
val
> 1e6 ||
val
< -1e6)
14
return
0.;
15
return
val
;
16
}
17
}
// namespace deepmet_helper
CommonMethods.isnan
def isnan(num)
Definition:
CommonMethods.py:97
l1tEGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition:
l1tEGammaCrystalsEmulatorProducer_cfi.py:10
deepmet_helper::rm_outlier
float rm_outlier(float val)
Definition:
DeepMETHelper.cc:12
deepmet_helper
Definition:
DeepMETHelp.h:7
deepmet_helper::scale_and_rm_outlier
float scale_and_rm_outlier(float val, float scale)
Definition:
DeepMETHelper.cc:5
DeepMETHelp.h
heppy_batch.val
val
Definition:
heppy_batch.py:351
Generated for CMSSW Reference Manual by
1.8.14