ROOT logo
Swat » . » TWignerd

class TWignerd


Calculation of the fourier coefficients of wigner d functions
using recurrence.

Calculation of spherical harmonics and Wigner d functions by FFT.
Article: Acta Crystallographica Section A, Foundations of
Crystallography.
Authors: Stefano Trapani and Jorge Navasa.

Refer to macro wig_graph.C in tutorials directory for an example
how to use this class to sample wigner d functions.


Function Members (Methods)

public:
TWignerd(int B)
TWignerd(const TWignerd&)
~TWignerd()
voidAdvance(int l)
doubleDelta(int m, int n) const
intGetL() const
complex<double>operator()(int m, int n, int u) const
TWignerd&operator=(const TWignerd&)
voidRecurse()
private:
intfIndex(int m, int n) const

Data Members

private:
intfBBand limit of the signal to be analised.
intfLValue of l in each step of the recursion.
vector<double>fMatrixDelta coefficients.
intfSizeSize of container with deltas.

Class Charts

Inheritance Chart:
TWignerd

Function documentation

void Recurse()
 Advances one step in the recursion, from l to l+1
void Advance(int l)
 Advances using a loop in Recurse(), so that fL = l.
std::complex<double> operator()(int m, int n, int u) const
double Delta(int m, int n) const
int fIndex(int m, int n) const
{return (((m*(m+1)) >> 1) + n);}
explicit TWignerd(int B)
{ fMatrix[fIndex(0,0)] = 1; }
int GetL() const
{return fL;}