CMS 3D CMS Logo

scales.h
Go to the documentation of this file.
1 #ifndef L1TriggerScouting_Utilities_scales_h
2 #define L1TriggerScouting_Utilities_scales_h
3 
4 #include <cstdint>
5 #include <cmath>
6 
7 namespace l1ScoutingRun3 {
8 
9  // Scaled used to convert scouting hw values to physical quantities
10 
11  namespace ugmt {
12  struct scales {
13  static constexpr float pt_scale = 0.5;
14  static constexpr float ptunconstrained_scale = 1.0;
15  static constexpr float phi_scale = 2. * M_PI / 576.;
16  static constexpr float eta_scale = 0.0870 / 8;
17  static constexpr float phi_range = M_PI;
18  };
19  } // namespace ugmt
20 
21  namespace demux {
22  struct scales {
23  static constexpr float phi_scale = 2. * M_PI / 144.;
24  static constexpr float eta_scale = 0.0435;
25  static constexpr float et_scale = 0.5;
26  };
27  } // namespace demux
28 
29 } // namespace l1ScoutingRun3
30 #endif // L1TriggerScouting_Utilities_scales_h
static constexpr float eta_scale
Definition: scales.h:24
static constexpr float pt_scale
Definition: scales.h:13
static constexpr float et_scale
Definition: scales.h:25
static constexpr float ptunconstrained_scale
Definition: scales.h:14
static constexpr float phi_scale
Definition: scales.h:15
#define M_PI
static constexpr float phi_range
Definition: scales.h:17
static constexpr float phi_scale
Definition: scales.h:23
static constexpr float eta_scale
Definition: scales.h:16