ROOTPWA
|
Handling of Clebsch-Gordan coefficients. More...
#include <ClebschGordanBox.h>
Public Member Functions | |
ClebschGordanBox () | |
Contructor of the container structure. | |
TFracNum * | GetCG (Int_t J, Int_t J1, Int_t J2) |
Return field with coefficients for coupling (J1 J2|J) |
Private Member Functions | |
TFracNum * | ClebschGordan (Int_t twoJ, Int_t twoJ1, Int_t twoJ2) |
Private Attributes | |
Int_t | NCG |
Int_t * | CGJ |
Int_t * | CGJ1 |
Int_t * | CGJ2 |
TFracNum ** | CG |
Handling of Clebsch-Gordan coefficients.
This Class provides the calculation and storage of Clebsch-Gordan coefficients. The calculation follows the derivation presented in J. J. Sakurai, "Modern Quantum Mechanics" (Addison-Wesley Hawaii 1984 ???), pp. ???-???. Since by this method, all coefficients of a multiplet (J,J1,J2) are obtained at once, they (actually their squares, keeping the original signs) are stored in a TFracNum field accessed by the method GetCG.
In order to obtain a specific coefficient (J1,m1,J2,m2|Jm), its index in the field can be obtained by CGIndex(J1,m1,J2,m2). This method is defined globally.
The GetCG method can be called a often as the coefficients are needed, since the calculation is done only once for each multiplet.
Definition at line 36 of file ClebschGordanBox.h.
|
inline |
Contructor of the container structure.
Definition at line 46 of file ClebschGordanBox.h.
Definition at line 247 of file ClebschGordanBox.cc.
References TFracNum::Abs(), Bool_t, debugCG, TFracNum::FlipSign(), TFracNum::FracString(), TFracNum::GetSign(), i, Int_t, TFracNum::Invert(), TFracNum::Print(), TFracNum::SetINTs(), and TFracNum::Sqrt().
Return field with coefficients for coupling (J1 J2|J)
The calculation is performed only once per coupling as long as the ClebschGordanBox exists, so the method may be called repeatedly as needed.
Definition at line 207 of file ClebschGordanBox.cc.
References debugCGBox, i, and Int_t.
Referenced by TSpinWaveFunction::CheckCGFormula(), TSpinWaveFunction::GetSpinCoupledTensorSum(), TFhh::TFhh(), and TLSNonRel::TLSNonRel().
|
private |
Definition at line 42 of file ClebschGordanBox.h.
Referenced by ClebschGordanBox().
|
private |
Definition at line 39 of file ClebschGordanBox.h.
|
private |
Definition at line 40 of file ClebschGordanBox.h.
|
private |
Definition at line 41 of file ClebschGordanBox.h.
|
private |
Definition at line 38 of file ClebschGordanBox.h.
Referenced by ClebschGordanBox().