HOPS
HOPS class reference
MHO_Constants.hh
Go to the documentation of this file.
1 #ifndef MHO_Constants_HH__
2 #define MHO_Constants_HH__
3 
4 #include <cmath>
5 #include <complex>
6 
7 namespace hops
8 {
9 
19 {
20  private:
21  MHO_Constants() = delete; //class is non-constructable, just a namespace for constants
22 
23  public:
24  constexpr static double pi = 3.14159265358979323846264338;
25  constexpr static double deg_to_rad = pi / 180.0;
26  constexpr static double rad_to_deg = 180.0 / pi;
27  constexpr static double nanosec_to_second = 1e-9;
28  constexpr static std::complex< double > imag_unit{0.0, 1.0};
29  constexpr static double MHz_to_Hz = 1e6;
30  constexpr static double ion_k = -8.448e9;
31 };
32 
33 } // namespace hops
34 
35 #endif
a namespace class for storing constants
Definition: MHO_Constants.hh:19
constexpr static std::complex< double > imag_unit
Definition: MHO_Constants.hh:28
constexpr static double ion_k
Definition: MHO_Constants.hh:30
constexpr static double rad_to_deg
Definition: MHO_Constants.hh:26
constexpr static double MHz_to_Hz
Definition: MHO_Constants.hh:29
constexpr static double nanosec_to_second
Definition: MHO_Constants.hh:27
constexpr static double pi
Definition: MHO_Constants.hh:24
constexpr static double deg_to_rad
Definition: MHO_Constants.hh:25
Definition: MHO_ChannelLabeler.hh:17