00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef HEP_SYSTEM_OF_UNITS_H
00042 #define HEP_SYSTEM_OF_UNITS_H
00043
00044 #include "CLHEP/config/CLHEP.h"
00045
00046
00047
00048
00049 static const double millimeter = 1.;
00050 static const double millimeter2 = millimeter*millimeter;
00051 static const double millimeter3 = millimeter*millimeter*millimeter;
00052
00053 static const double centimeter = 10.*millimeter;
00054 static const double centimeter2 = centimeter*centimeter;
00055 static const double centimeter3 = centimeter*centimeter*centimeter;
00056
00057 static const double meter = 1000.*millimeter;
00058 static const double meter2 = meter*meter;
00059 static const double meter3 = meter*meter*meter;
00060
00061 static const double kilometer = 1000.*meter;
00062 static const double kilometer2 = kilometer*kilometer;
00063 static const double kilometer3 = kilometer*kilometer*kilometer;
00064
00065 static const double parsec = 3.0856775807e+16*meter;
00066
00067 static const double micrometer = 1.e-6 *meter;
00068 static const double nanometer = 1.e-9 *meter;
00069 static const double angstrom = 1.e-10*meter;
00070 static const double fermi = 1.e-15*meter;
00071
00072 static const double barn = 1.e-28*meter2;
00073 static const double millibarn = 1.e-3 *barn;
00074 static const double microbarn = 1.e-6 *barn;
00075 static const double nanobarn = 1.e-9 *barn;
00076 static const double picobarn = 1.e-12*barn;
00077
00078
00079 static const double mm = millimeter;
00080 static const double mm2 = millimeter2;
00081 static const double mm3 = millimeter3;
00082
00083 static const double cm = centimeter;
00084 static const double cm2 = centimeter2;
00085 static const double cm3 = centimeter3;
00086
00087 static const double m = meter;
00088 static const double m2 = meter2;
00089 static const double m3 = meter3;
00090
00091 static const double km = kilometer;
00092 static const double km2 = kilometer2;
00093 static const double km3 = kilometer3;
00094
00095 static const double pc = parsec;
00096
00097
00098
00099
00100 static const double radian = 1.;
00101 static const double milliradian = 1.e-3*radian;
00102 static const double degree = (3.14159265358979323846/180.0)*radian;
00103
00104 static const double steradian = 1.;
00105
00106
00107 static const double rad = radian;
00108 static const double mrad = milliradian;
00109 static const double sr = steradian;
00110 static const double deg = degree;
00111
00112
00113
00114
00115 static const double nanosecond = 1.;
00116 static const double second = 1.e+9 *nanosecond;
00117 static const double millisecond = 1.e-3 *second;
00118 static const double microsecond = 1.e-6 *second;
00119 static const double picosecond = 1.e-12*second;
00120
00121 static const double hertz = 1./second;
00122 static const double kilohertz = 1.e+3*hertz;
00123 static const double megahertz = 1.e+6*hertz;
00124
00125
00126 static const double ns = nanosecond;
00127 static const double s = second;
00128 static const double ms = millisecond;
00129
00130
00131
00132
00133 static const double eplus = 1. ;
00134 static const double e_SI = 1.60217733e-19;
00135 static const double coulomb = eplus/e_SI;
00136
00137
00138
00139
00140 static const double megaelectronvolt = 1. ;
00141 static const double electronvolt = 1.e-6*megaelectronvolt;
00142 static const double kiloelectronvolt = 1.e-3*megaelectronvolt;
00143 static const double gigaelectronvolt = 1.e+3*megaelectronvolt;
00144 static const double teraelectronvolt = 1.e+6*megaelectronvolt;
00145 static const double petaelectronvolt = 1.e+9*megaelectronvolt;
00146
00147 static const double joule = electronvolt/e_SI;
00148
00149
00150 static const double MeV = megaelectronvolt;
00151 static const double eV = electronvolt;
00152 static const double keV = kiloelectronvolt;
00153 static const double GeV = gigaelectronvolt;
00154 static const double TeV = teraelectronvolt;
00155 static const double PeV = petaelectronvolt;
00156
00157
00158
00159
00160 static const double kilogram = joule*second*second/(meter*meter);
00161 static const double gram = 1.e-3*kilogram;
00162 static const double milligram = 1.e-3*gram;
00163
00164
00165 static const double kg = kilogram;
00166 static const double g = gram;
00167 static const double mg = milligram;
00168
00169
00170
00171
00172 static const double watt = joule/second;
00173
00174
00175
00176
00177 static const double newton = joule/meter;
00178
00179
00180
00181
00182 #define pascal hep_pascal // a trick to avoid warnings
00183 static const double hep_pascal = newton/m2;
00184 static const double bar = 100000*pascal;
00185 static const double atmosphere = 101325*pascal;
00186
00187
00188
00189
00190 static const double ampere = coulomb/second;
00191 static const double milliampere = 1.e-3*ampere;
00192 static const double microampere = 1.e-6*ampere;
00193 static const double nanoampere = 1.e-9*ampere;
00194
00195
00196
00197
00198 static const double megavolt = megaelectronvolt/eplus;
00199 static const double kilovolt = 1.e-3*megavolt;
00200 static const double volt = 1.e-6*megavolt;
00201
00202
00203
00204
00205 static const double ohm = volt/ampere;
00206
00207
00208
00209
00210 static const double farad = coulomb/volt;
00211 static const double millifarad = 1.e-3*farad;
00212 static const double microfarad = 1.e-6*farad;
00213 static const double nanofarad = 1.e-9*farad;
00214 static const double picofarad = 1.e-12*farad;
00215
00216
00217
00218
00219 static const double weber = volt*second;
00220
00221
00222
00223
00224 static const double tesla = volt*second/meter2;
00225
00226 static const double gauss = 1.e-4*tesla;
00227 static const double kilogauss = 1.e-1*tesla;
00228
00229
00230
00231
00232 static const double henry = weber/ampere;
00233
00234
00235
00236
00237 static const double kelvin = 1.;
00238
00239
00240
00241
00242 static const double mole = 1.;
00243
00244
00245
00246
00247 static const double becquerel = 1./second ;
00248 static const double curie = 3.7e+10 * becquerel;
00249
00250
00251
00252
00253 static const double gray = joule/kilogram ;
00254
00255
00256
00257
00258 static const double candela = 1.;
00259
00260
00261
00262
00263 static const double lumen = candela*steradian;
00264
00265
00266
00267
00268 static const double lux = lumen/meter2;
00269
00270
00271
00272
00273 static const double perCent = 0.01 ;
00274 static const double perThousand = 0.001;
00275 static const double perMillion = 0.000001;
00276
00277 #endif