My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Constants.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_CONSTANTS_H
2 #define GCP_UTIL_CONSTANTS_H
3 
11 #include "gcp/util/common/Speed.h"
12 #include "gcp/util/common/Temperature.h"
13 
14 namespace gcp {
15  namespace util {
16 
17  class Constants {
18  public:
19 
20  static Temperature Tcmb_;
21  static const double hPlanckCgs_;
22  static const double kBoltzCgs_;
23  static const double JyPerCgs_;
24  static const double sigmaTCgs_;
25  static const double electronMassCgs_;
26  static const double protonMassCgs_;
27 
28  static Speed lightSpeed_;
29 
33  Constants();
34 
38  virtual ~Constants();
39 
40  virtual double cgs() {
41  return cgs_;
42  }
43 
44  virtual double si() {
45  return si_;
46  }
47 
48  protected:
49 
50  void setGgs(double cgs) {
51  cgs = cgs_;
52  }
53 
54  void setSi(double si) {
55  si = si_;
56  }
57 
58  private:
59 
60  double cgs_;
61  double si_;
62 
63  }; // End class Constants
64 
65  } // End namespace util
66 } // End namespace gcp
67 
68 
69 
70 #endif // End #ifndef GCP_UTIL_CONSTANTS_H
Definition: Temperature.h:17
Definition: Speed.h:16
Definition: Constants.h:17
virtual ~Constants()
Definition: Constants.cc:26
Constants()
Definition: Constants.cc:21