CMS 3D CMS Logo

DeepMETHelp.h
Go to the documentation of this file.
1 #ifndef RecoMET_METPUSubtraction_DeepMETHelp_h
2 #define RecoMET_METPUSubtraction_DeepMETHelp_h
3 
4 #include <unordered_map>
5 #include <cstdint>
6 
7 namespace deepmet_helper {
8  float scale_and_rm_outlier(float val, float scale);
9  float rm_outlier(float val);
10 
11  static const std::unordered_map<int, int32_t> charge_embedding{{-1, 0}, {0, 1}, {1, 2}};
12  static const std::unordered_map<int, int32_t> pdg_id_embedding{
13  {-211, 0}, {-13, 1}, {-11, 2}, {0, 3}, {1, 4}, {2, 5}, {11, 6}, {13, 7}, {22, 8}, {130, 9}, {211, 10}};
14 } // namespace deepmet_helper
15 
16 #endif
float rm_outlier(float val)
static const std::unordered_map< int, int32_t > charge_embedding
Definition: DeepMETHelp.h:11
static const std::unordered_map< int, int32_t > pdg_id_embedding
Definition: DeepMETHelp.h:12
float scale_and_rm_outlier(float val, float scale)
Definition: DeepMETHelper.cc:5