VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
variousConstants.h
Go to the documentation of this file.
1 /**
2  * \file variousConstants.h
3  * \brief Variouse usefull constants, see namespace VC for details
4  * \author Developed under supervision of the PI Yuri Shprits
5  */
6 
7 #ifndef VARIOUS_CONSTANTS_H
8 
9 /// \def VARIOUS_CONSTANTS_H
10 /// \brief Prevent of double definition of this file
11 #define VARIOUS_CONSTANTS_H
12 
13 /** \namespace VC
14 * \brief Various mathematical constants.
15 *
16 * Namespace defined at variousConstants.h. It has no cpp files because in contains only constants
17 */
18 namespace VC {
19 
20  /// \brief Minimum value for PSD
21  static const double zero_f = 1e-31;
22  ///\brief m*c^2 = 0.511 MeV
23  static const double mc2 = 0.511;
24  ///\brief π
25  static const double pi = 3.141592653589793238462643;
26  ///\brief mass of electron in grams
27  static const double m = 9.10953e-28;
28  ///\brief speed of light, cm/s
29  static const double c_cgs = 2.998e10;
30  ///\brief speed of light, km/s
31  static const double c_si = 2.998e8;
32  ///\brief electron charge, CGS units
33  static const double qe = 4.803242e-10;
34  ///\brief magnetic field at the equatorial plane on the Earth surface, Gauss
35  static const double B_0 = 0.311;
36  ///\brief exponential
37  static const double exp = 2.7183;
38  ///\brief Radius fo the Earch in km
39  static const double RE = 6.371e6;
40 }
41 
42 #endif