File indexing completed on 2024-05-20 22:40:06
0001 #include "RecoMET/METPUSubtraction/interface/DeepMETHelp.h"
0002 #include <cmath>
0003
0004 namespace deepmet_helper {
0005 float scale_and_rm_outlier(float val, float scale) {
0006 float ret_val = val * scale;
0007 if (std::isnan(ret_val) || ret_val > 1e6 || ret_val < -1e6)
0008 return 0.;
0009 return ret_val;
0010 }
0011
0012 float rm_outlier(float val) {
0013 if (std::isnan(val) || val > 1e6 || val < -1e6)
0014 return 0.;
0015 return val;
0016 }
0017 }