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