The format to be used is:
extern "C" int drixs1(int & tn,double & th,double & ph,double J0, double & J2, double & J4, double & J6,ComplexMatrix & est,double & T, ComplexVector & rixs, float & maxE)
The meaning of the symbols is as follows:
on input
|tn| transition-number
sign(tn) >0 standard with printouts for user information,
<0 routine should omit any printout
th polar angle theta of the scattering vector Q
(angle with the axb axis=c axis) in rad
ph polar angle phi of the scattering vector Q
(angle with bx(axb)=a in the projection into
the bx(axb),b plane = angle with a in the projection into
the ab plane) in rad
J0,J2,J4,J6 form factor functions <jn(Q)>
est eigenstate matrix (as calculated by estates),
it should also contain population numbers of the states (row 0)
T Temperature[K]
rixs(1) ninit + i pinit (from mcdisp options -ninit and -pinit)
maxE maximum transition energy (from mcdisp option maxE)
on output
int total number of transitions
rixs vector rixs(alpha)=<-|Ralpha|+>sqrt(p- - p+)
with alpha=1,..9=xx, xy ,xz, yx, yy, yz, zx,zy, zz
Note on coordinate system:
x||bx(axb)
y||b
z||axb
The module function must perform the following tasks: