Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _DataUtils_H
#define _DataUtils_H
#include "qft++/topincludes/relativistic-quantum-mechanics.hh"
struct jpcRes
{
Spin J;
int P;
int C;
jpcRes(Spin j=0, int p=1, int c=1){
J=j;
P=p;
C=c;
}
};
/// L,S,M combination
struct LSM{
Spin L;
Spin S;
Spin M;
LSM(int l=0, Spin s=0, int m=0){
L=l;
S=s;
M=m;
}
};
struct PbarP{
jpcRes jpc;
LSM lsm;
double ClebschG;
PbarP(const jpcRes& theJPC, const LSM& theLSM, const double theClebschG){
jpc=theJPC;
lsm=theLSM;
ClebschG=theClebschG;
}
void print(std::ostream& os) const{
os <<"J=" << jpc.J << "\tP=" << jpc.P << "\tC=" << jpc.C
<<"\tL=" << lsm.L <<"\tS=" << lsm.S <<"\tlambda=" << lsm.M
<<"\tClebschGordan=" << ClebschG
<< std::endl;
}
};
#endif /* _DataUtils_H */