![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
00001 00010 #include <math.h> 00011 #include <iostream> 00012 using namespace std; 00013 00014 #ifndef ELECTRONMASSINMEV 00015 #define ELECTRONMASSINMEV 510.998903 //!<Electron mass in MeV 00016 #endif 00017 00018 #ifndef ONEU 00019 #define ONEU 931.494 //!<One u. 00020 #endif 00021 00022 #ifndef MEVTOJ 00023 #define MEVTOJ 1.602177E-13 //!<Conversion unit for MeV to J 00024 #endif 00025 00026 #ifndef HEMASS 00027 #define HEMASS 4.00260325415 //!<Helium mass in u. 00028 #endif 00029 00030 #ifndef ONEUKG 00031 #define ONEUKG 1.660539E-27 //!<One u in kg. 00032 #endif 00033 00034 #ifndef SPEEDOFLIGHT 00035 #define SPEEDOFLIGHT 299792458 //!<Speed of light in vacuum. 00036 #endif 00037 00038 #ifndef HBAR 00039 #define HBAR 1.05457148E-34 //!<Planck constant. 00040 #endif 00041 00042 #ifndef KKONST 00043 #define KKONST 8.98755179E9 //!<Constant in Coulomb's law 00044 #endif 00045 00046 #ifndef ELEMENTARYCHARGE 00047 #define ELEMENTARYCHARGE 1.60217646E-19 //!<Elementary charge. 00048 #endif 00049 00050 #ifndef HALFLIFEESTIMATOR_H 00051 #define HALFLIFEESTIMATOR_H //!<Inclusion guard. 00052 00055 class HalfLifeEstimator{ 00056 public: 00057 HalfLifeEstimator(); 00058 double estimateHalfLife(double QValueInMeV 00059 , unsigned short int A 00060 , unsigned short int Z 00061 ); 00062 private: 00063 }; 00064 #endif