BOSS
7.0.6
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
15
class
TConstants
{
16
protected
:
17
double
fAlphaScale
;
18
double
fAlpha
;
19
double
fAlpha2
;
20
double
fAlpha3
;
21
double
fAlphaPi
;
22
public
:
23
TConstants
(){
24
fAlphaScale
= 1;
25
Init
();
26
};
27
~TConstants
(){};
28
void
Init
(){
29
fAlpha
=
M_ALPHA
*
fAlphaScale
;
30
fAlpha2
=
fAlpha
*
fAlpha
;
31
fAlpha3
=
fAlpha2
*
fAlpha
;
32
fAlphaPi
=
fAlpha
/
M_PI
;
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
63
extern
TConstants
*
gConst
;
64
65
#endif
//#ifndef RAD_TConstants
M_PI
#define M_PI
Definition:
TConstant.h:4
M_MTAU
#define M_MTAU
Definition:
TConstants.h:10
M_MMU
#define M_MMU
Definition:
TConstants.h:9
M_ME
#define M_ME
Definition:
TConstants.h:8
M_MPI
#define M_MPI
Definition:
TConstants.h:11
M_ALPHA
#define M_ALPHA
Definition:
TConstants.h:6
M_HC
#define M_HC
Definition:
TConstants.h:7
M_MKC
#define M_MKC
Definition:
TConstants.h:13
M_MK0
#define M_MK0
Definition:
TConstants.h:12
gConst
TConstants * gConst
Definition:
Mcgpj.cxx:49
M_META
#define M_META
Definition:
TConstants.h:14
TConstants
Definition:
TConstants.h:15
TConstants::MKC2
static double MKC2()
Definition:
TConstants.h:57
TConstants::AlphaPi
double AlphaPi()
Definition:
TConstants.h:41
TConstants::Alpha
double Alpha()
Definition:
TConstants.h:36
TConstants::MK02
static double MK02()
Definition:
TConstants.h:55
TConstants::Pi
static double Pi()
Definition:
TConstants.h:39
TConstants::HC
static double HC()
Definition:
TConstants.h:42
TConstants::Mpi
static double Mpi()
Definition:
TConstants.h:50
TConstants::Mtau2
static double Mtau2()
Definition:
TConstants.h:49
TConstants::HC2
static double HC2()
Definition:
TConstants.h:43
TConstants::Me
static double Me()
Definition:
TConstants.h:44
TConstants::~TConstants
~TConstants()
Definition:
TConstants.h:27
TConstants::MK0
static double MK0()
Definition:
TConstants.h:54
TConstants::Pi2
static double Pi2()
Definition:
TConstants.h:40
TConstants::TConstants
TConstants()
Definition:
TConstants.h:23
TConstants::Meta
static double Meta()
Definition:
TConstants.h:52
TConstants::MKC
static double MKC()
Definition:
TConstants.h:56
TConstants::Mpi2
static double Mpi2()
Definition:
TConstants.h:51
TConstants::fAlpha3
double fAlpha3
Definition:
TConstants.h:20
TConstants::fAlpha
double fAlpha
Definition:
TConstants.h:18
TConstants::Mmu
static double Mmu()
Definition:
TConstants.h:46
TConstants::Me2
static double Me2()
Definition:
TConstants.h:45
TConstants::Init
void Init()
Definition:
TConstants.h:28
TConstants::Meta2
static double Meta2()
Definition:
TConstants.h:53
TConstants::Mtau
static double Mtau()
Definition:
TConstants.h:48
TConstants::fAlpha2
double fAlpha2
Definition:
TConstants.h:19
TConstants::Print
void Print()
Definition:
TConstants.h:58
TConstants::GetAlphaScale
double GetAlphaScale()
Definition:
TConstants.h:35
TConstants::fAlphaScale
double fAlphaScale
Definition:
TConstants.h:17
TConstants::SetAlphaScale
void SetAlphaScale(const double &x)
Definition:
TConstants.h:34
TConstants::fAlphaPi
double fAlphaPi
Definition:
TConstants.h:21
TConstants::Alpha2
double Alpha2()
Definition:
TConstants.h:37
TConstants::Alpha3
double Alpha3()
Definition:
TConstants.h:38
TConstants::Mmu2
static double Mmu2()
Definition:
TConstants.h:47
x
double x[1000]
Definition:
draw_charge_space_coarse_II.cxx:8
source
Generator
Mcgpj
Mcgpj-00-01-04
src
code
inc
TConstants.h
Generated by
1.9.6