Bridge++
Version 1.5.4
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
gammaMatrixSet.h
Go to the documentation of this file.
1
14
#ifndef GAMMAMATRIXSET_INCLUDED
15
#define GAMMAMATRIXSET_INCLUDED
16
17
#include <cassert>
18
19
#include "
Parameters/commonParameters.h
"
20
#include "
gammaMatrix.h
"
21
22
#ifdef USE_FACTORY
23
#include "
factory.h
"
24
#endif
25
27
37
class
GammaMatrixSet
38
{
39
protected
:
40
int
m_Nspecies
;
41
std::vector<GammaMatrix>
m_gm
;
42
43
Bridge::VerboseLevel
m_vl
;
44
45
public
:
46
enum
GMspecies
47
{
48
UNITY
,
GAMMA1
,
GAMMA2
,
GAMMA3
,
GAMMA4
,
GAMMA5
,
49
GAMMA51
,
GAMMA52
,
GAMMA53
,
GAMMA54
,
50
GAMMA15
,
GAMMA25
,
GAMMA35
,
GAMMA45
,
51
SIGMA12
,
SIGMA23
,
SIGMA31
,
52
SIGMA41
,
SIGMA42
,
SIGMA43
,
53
CHARGECONJG
54
};
55
56
GammaMatrixSet
()
57
:
m_vl
(
CommonParameters
::Vlevel())
58
{
59
int
Nd =
CommonParameters::Nd
();
60
61
assert(Nd == 4);
62
m_Nspecies
= Nd * (Nd + 1) + 1;
// must be 21.
63
m_gm
.resize(
m_Nspecies
);
64
}
65
66
virtual
~GammaMatrixSet
() {}
67
68
private
:
69
// non-copyable
70
GammaMatrixSet
(
const
GammaMatrixSet
&);
71
GammaMatrixSet
&
operator=
(
const
GammaMatrixSet
&);
72
73
public
:
74
virtual
void
init_GM
() = 0;
75
76
GammaMatrix
get_GM
(
GMspecies
spec)
77
{
78
assert(spec <
m_Nspecies
);
79
return
m_gm
[spec];
80
}
81
82
virtual
void
print
() = 0;
83
84
#ifdef USE_FACTORY
85
public
:
86
typedef
GammaMatrixSet
*(*ProductCreator)();
87
typedef
FactoryTemplate<GammaMatrixSet, ProductCreator>
Factory;
88
89
static
GammaMatrixSet
*New(
const
IdentifierType
& subtype)
90
{
91
ProductCreator p = Factory::Find(subtype);
92
93
return
p ? (*p)() : 0;
94
}
95
96
#ifdef USE_FACTORY_AUTOREGISTER
97
#else
98
static
bool
init_factory();
99
#endif
100
#endif
101
};
102
#endif
CommonParameters::Nd
static int Nd()
Definition:
commonParameters.h:116
GammaMatrixSet::~GammaMatrixSet
virtual ~GammaMatrixSet()
Definition:
gammaMatrixSet.h:66
GammaMatrixSet::m_gm
std::vector< GammaMatrix > m_gm
Definition:
gammaMatrixSet.h:41
GammaMatrixSet::get_GM
GammaMatrix get_GM(GMspecies spec)
Definition:
gammaMatrixSet.h:76
GammaMatrixSet::GAMMA3
Definition:
gammaMatrixSet.h:48
GammaMatrixSet::GAMMA1
Definition:
gammaMatrixSet.h:48
GammaMatrixSet::UNITY
Definition:
gammaMatrixSet.h:48
gammaMatrix.h
GammaMatrixSet::GammaMatrixSet
GammaMatrixSet()
Definition:
gammaMatrixSet.h:56
GammaMatrixSet::GAMMA54
Definition:
gammaMatrixSet.h:49
GammaMatrixSet::GAMMA25
Definition:
gammaMatrixSet.h:50
GammaMatrixSet::operator=
GammaMatrixSet & operator=(const GammaMatrixSet &)
commonParameters.h
GammaMatrixSet::GAMMA15
Definition:
gammaMatrixSet.h:50
GammaMatrix
Gamma Matrix class.
Definition:
gammaMatrix.h:44
GammaMatrixSet::print
virtual void print()=0
GammaMatrixSet::GAMMA35
Definition:
gammaMatrixSet.h:50
GammaMatrixSet::GAMMA53
Definition:
gammaMatrixSet.h:49
GammaMatrixSet::SIGMA41
Definition:
gammaMatrixSet.h:52
GammaMatrixSet::GAMMA4
Definition:
gammaMatrixSet.h:48
GammaMatrixSet::init_GM
virtual void init_GM()=0
GammaMatrixSet
Set of Gamma Matrices: basis class.
Definition:
gammaMatrixSet.h:37
CommonParameters
Common parameter class: provides parameters as singleton.
Definition:
commonParameters.h:42
factory.h
GammaMatrixSet::GAMMA52
Definition:
gammaMatrixSet.h:49
GammaMatrixSet::GMspecies
GMspecies
Definition:
gammaMatrixSet.h:46
GammaMatrixSet::m_Nspecies
int m_Nspecies
Definition:
gammaMatrixSet.h:40
GammaMatrixSet::GAMMA45
Definition:
gammaMatrixSet.h:50
GammaMatrixSet::SIGMA23
Definition:
gammaMatrixSet.h:51
GammaMatrixSet::SIGMA42
Definition:
gammaMatrixSet.h:52
Bridge::VerboseLevel
VerboseLevel
Definition:
bridgeIO.h:42
GammaMatrixSet::SIGMA12
Definition:
gammaMatrixSet.h:51
GammaMatrixSet::SIGMA43
Definition:
gammaMatrixSet.h:52
FactoryTemplate
Definition:
factory.h:42
IdentifierType
std::string IdentifierType
Factory template class.
Definition:
factory.h:39
GammaMatrixSet::GAMMA51
Definition:
gammaMatrixSet.h:49
GammaMatrixSet::m_vl
Bridge::VerboseLevel m_vl
Definition:
gammaMatrixSet.h:43
GammaMatrixSet::SIGMA31
Definition:
gammaMatrixSet.h:51
GammaMatrixSet::GAMMA5
Definition:
gammaMatrixSet.h:48
GammaMatrixSet::CHARGECONJG
Definition:
gammaMatrixSet.h:53
GammaMatrixSet::GAMMA2
Definition:
gammaMatrixSet.h:48
src
lib
Tools
gammaMatrixSet.h
Generated on Thu Mar 19 2020 10:28:24 for Bridge++ by
1.8.6