- Removed SCStart/EndBuffering as far as possible and fixed an issue with
the capture command in that it not put resluts into the Tcl interpreter. This broke scriptcontext scripts in complicated situations. - Resolved some issues with the TAS calculation and negative scattering sense. - Fixed a bug which did not reset the state to idle after checking reachability in confvirtualmot.c SKIPPED: psi/autowin.c psi/eigera2.c psi/jvlprot.c psi/makefile_linux psi/sinqhttpopt.c psi/tasscan.c
This commit is contained in:
39
tasublib.h
39
tasublib.h
@ -154,6 +154,17 @@ MATRIX calcTasUVectorFromAngles(tasReflection r);
|
||||
* @return a negative error code on failure, 1 on success
|
||||
*/
|
||||
int calcTwoTheta(MATRIX B, tasQEPosition ref, int ss, double *twoTheta);
|
||||
/**
|
||||
* calculate a UB from the cell and values for the displacement of
|
||||
* the crystal in om, sgu and sgl. This is for software testing.
|
||||
* @param cell The lattice constant of the crystal
|
||||
* @param om A theoretical omega
|
||||
* @param sgu A theoreticl sgu
|
||||
* @param sgl A theoretical sgl
|
||||
* @return a UB matix on sucess, or NULL on failure. Failure means out of memory
|
||||
* or an invalid cell.
|
||||
*/
|
||||
MATRIX calcTheoreticalTasUB(lattice cell, double om, double sgu, double sgl);
|
||||
/**
|
||||
* calculate a UB from two reflections and the cell.
|
||||
* @param cell The lattice constant of the crystal
|
||||
@ -166,6 +177,24 @@ int calcTwoTheta(MATRIX B, tasQEPosition ref, int ss, double *twoTheta);
|
||||
*/
|
||||
MATRIX calcTasUBFromTwoReflections(lattice cell, tasReflection r1,
|
||||
tasReflection r2, int *errorCode);
|
||||
/**
|
||||
* calculate a test plane normal
|
||||
* @param sgu A theoretical plane tilt on upper
|
||||
* @param sgl A theoretical plane tilt on lower
|
||||
* @return a normal on sucess, or NULL on failure. This can only happen
|
||||
* when out of memory
|
||||
*/
|
||||
MATRIX calcTestNormal(double sgu, double sgl);
|
||||
/**
|
||||
* calculate a test UB
|
||||
* @param cell The lattice constant of the crystal
|
||||
* @param om A theoretical om for the crystal
|
||||
* @param sgu A theoretical plane tilt on upper
|
||||
* @param sgl A theoretical plane tilt on lower
|
||||
* @return a UB matix on sucess, or NULL on failure. This can only happen
|
||||
* when out of memory or with a bad cell
|
||||
*/
|
||||
MATRIX calcTestUB(lattice cell, double om, double sgu, double sgl);
|
||||
/**
|
||||
* calcluate the normal to the plane describe by the two reflections r1, r2
|
||||
* @param r1 first reflection
|
||||
@ -173,6 +202,16 @@ MATRIX calcTasUBFromTwoReflections(lattice cell, tasReflection r1,
|
||||
* @return a plane normal on success, NULL else
|
||||
*/
|
||||
MATRIX calcPlaneNormal(tasReflection r1, tasReflection r2);
|
||||
/**
|
||||
* calcluate the normal to the plane describe by the two reflections r1, r2
|
||||
* This uses a different path in that it calculates the Qv from the UB and
|
||||
* the Q values.
|
||||
* @param UB The UB to use
|
||||
* @param r1 first reflection
|
||||
* @param r2 second reflection
|
||||
* @return a plane normal on success, NULL else
|
||||
*/
|
||||
MATRIX calcPlaneNormalQ(MATRIX UB, tasReflection r1, tasReflection r2);
|
||||
/**
|
||||
* calculate the angles for r. R's h, k, l, ki, kf must be set, the angles
|
||||
* will be updated.
|
||||
|
Reference in New Issue
Block a user