CMS 3D CMS Logo

DeepMETHelper.cc
Go to the documentation of this file.
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
def isnan(num)
float rm_outlier(float val)
float scale_and_rm_outlier(float val, float scale)
Definition: DeepMETHelper.cc:5