BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TConstants.h
Go to the documentation of this file.
1#ifndef RAD_TConstants
2#define RAD_TConstants
3
4#include <cmath>
5#include <iostream>
6#define M_ALPHA 0.00729735307964482 // = 1/137.0359895
7#define M_HC 197.327053
8#define M_ME 0.51099907
9#define M_MMU 105.658357
10#define M_MTAU 1776.99
11#define M_MPI 139.57018
12#define M_MK0 497.672
13#define M_MKC 493.677
14#define M_META 547.75
16protected:
18 double fAlpha;
19 double fAlpha2;
20 double fAlpha3;
21 double fAlphaPi;
22public:
24 fAlphaScale = 1;
25 Init();
26 };
28 void Init(){
33 }
34 void SetAlphaScale(const double &x){fAlphaScale = x; Init();}
35 inline double GetAlphaScale(){return fAlphaScale;}
36 inline double Alpha(){return fAlpha;}
37 inline double Alpha2(){return fAlpha2;}
38 inline double Alpha3(){return fAlpha3;}
39 static double Pi(){return M_PI;}
40 static double Pi2(){return M_PI*M_PI;}
41 inline double AlphaPi(){return fAlphaPi;}
42 static double HC(){return M_HC;}
43 static double HC2(){return M_HC*M_HC;}
44 static double Me(){return M_ME;}
45 static double Me2(){return M_ME*M_ME;}
46 static double Mmu(){return M_MMU;}
47 static double Mmu2(){return M_MMU*M_MMU;}
48 static double Mtau(){return M_MTAU;}
49 static double Mtau2(){return M_MTAU*M_MTAU;}
50 static double Mpi(){return M_MPI;}
51 static double Mpi2(){return M_MPI*M_MPI;}
52 static double Meta(){return M_META;}
53 static double Meta2(){return M_META*M_META;}
54 static double MK0(){return M_MK0;}
55 static double MK02(){return M_MK0*M_MK0;}
56 static double MKC(){return M_MKC;}
57 static double MKC2(){return M_MKC*M_MKC;}
58 void Print(){
59 std::cout<<"Alpha scale = "<<fAlphaScale<<std::endl;
60 }
61};
62
63extern TConstants *gConst;
64
65#endif //#ifndef RAD_TConstants
Double_t x[10]
#define M_PI
Definition: TConstant.h:4
#define M_MTAU
Definition: TConstants.h:10
#define M_MMU
Definition: TConstants.h:9
#define M_ME
Definition: TConstants.h:8
#define M_MPI
Definition: TConstants.h:11
#define M_ALPHA
Definition: TConstants.h:6
#define M_HC
Definition: TConstants.h:7
#define M_MKC
Definition: TConstants.h:13
#define M_MK0
Definition: TConstants.h:12
TConstants * gConst
Definition: Mcgpj.cxx:49
#define M_META
Definition: TConstants.h:14
static double MKC2()
Definition: TConstants.h:57
double AlphaPi()
Definition: TConstants.h:41
double Alpha()
Definition: TConstants.h:36
static double MK02()
Definition: TConstants.h:55
static double Pi()
Definition: TConstants.h:39
static double HC()
Definition: TConstants.h:42
static double Mpi()
Definition: TConstants.h:50
static double Mtau2()
Definition: TConstants.h:49
static double HC2()
Definition: TConstants.h:43
static double Me()
Definition: TConstants.h:44
static double MK0()
Definition: TConstants.h:54
static double Pi2()
Definition: TConstants.h:40
static double Meta()
Definition: TConstants.h:52
static double MKC()
Definition: TConstants.h:56
static double Mpi2()
Definition: TConstants.h:51
double fAlpha3
Definition: TConstants.h:20
double fAlpha
Definition: TConstants.h:18
static double Mmu()
Definition: TConstants.h:46
static double Me2()
Definition: TConstants.h:45
void Init()
Definition: TConstants.h:28
static double Meta2()
Definition: TConstants.h:53
static double Mtau()
Definition: TConstants.h:48
double fAlpha2
Definition: TConstants.h:19
void Print()
Definition: TConstants.h:58
double GetAlphaScale()
Definition: TConstants.h:35
double fAlphaScale
Definition: TConstants.h:17
void SetAlphaScale(const double &x)
Definition: TConstants.h:34
double fAlphaPi
Definition: TConstants.h:21
double Alpha2()
Definition: TConstants.h:37
double Alpha3()
Definition: TConstants.h:38
static double Mmu2()
Definition: TConstants.h:47