ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
relampl
TJwfTensor.h
Go to the documentation of this file.
1
//
2
// Uncomment the following line
3
// if you want to work in CINT (root.cern.ch)
4
//
5
//#define __JCINT__
6
#ifndef __JCINT__
7
#define Int_t long long
8
#define Double_t double
9
#define Bool_t bool
10
#endif
11
12
#include "
ClebschGordanBox.h
"
13
14
class
TTensorTerm
{
15
16
private
:
17
Int_t
Rome
;
18
Int_t
*
ome_pzm
;
19
Int_t
Reps
;
20
Int_t
*
eps_pzm
;
21
Int_t
Rchi
;
22
Int_t
*
chi_pzm
;
23
Int_t
Rphi
;
24
Int_t
*
phi_pzm
;
25
26
Int_t
gam_s_pot
;
27
Int_t
gam_sig_pot
;
28
29
TFracNum
prefac
;
30
31
public
:
32
TTensorTerm
() {
33
Rome
=0;
ome_pzm
=0;
34
Reps
=0;
eps_pzm
=0;
35
Rchi
=0;
chi_pzm
=0;
36
Rphi
=0;
phi_pzm
=0;
37
gam_s_pot
=0;
38
gam_sig_pot
=0;
39
prefac
=
TFracNum
(0,0,0,0,0);
40
};
41
42
TTensorTerm
(
char
,
Int_t
,
Int_t
*,
TFracNum
*);
43
TTensorTerm
(
TTensorTerm
*,
TTensorTerm
*,
Int_t
,
Int_t
,
Int_t
,
char
);
44
Int_t
LJContraction
(
Int_t
,
Int_t
);
45
Int_t
Multiply
(
char
,
Int_t
,
Int_t
*,
TFracNum
*);
46
Int_t
SpinInnerContraction
(
Int_t
);
47
Int_t
SameStructure
(
TTensorTerm
*);
48
Int_t
AddTwoTerms
(
TTensorTerm
*);
49
Int_t
IsNonZero
() {
50
if
(
prefac
==
TFracNum
(0,0,0,0,0))
return
0;
51
else
return
1;
52
};
53
Int_t
Print
(
char
);
54
TFracNum
GetPreFac
() {
return
prefac
;};
55
Int_t
GetGamS
() {
return
gam_s_pot
;};
56
Int_t
GetGamSig
() {
return
gam_sig_pot
;};
57
//ClassDef(TTensorTerm,1);
58
};
59
60
class
TTensorSum
{
61
62
private
:
63
Int_t
Nterms
;
64
TTensorTerm
*
terms
;
65
66
public
:
67
TTensorSum
() {
68
Nterms
=0;
69
terms
=0;
70
};
71
Int_t
AddTerm
(
TTensorTerm
*);
72
Int_t
SpinInnerContraction
(
Int_t
);
73
TTensorSum
*
LSContraction
(
TTensorSum
*,
Int_t
,
Int_t
,
Int_t
,
char
);
74
TTensorSum
*
LJContraction
(
Int_t
,
Int_t
);
75
Int_t
GetNterms
() {
return
Nterms
;};
76
Int_t
Print
(
char
);
77
Int_t
Print
() {
return
Print
(
'n'
);};
// CINT limitation for overloading
78
79
TTensorTerm
*
GetTerm
(
Int_t
i
) {
return
&
terms
[
i
];}
80
//ClassDef(TTensorSum,1);
81
};
Generated by
1.8.1.2