Files
sics/ubcalc.h
koennecke 361ee9ebea - Reworked the connection object and the IO system
- Reworked the support for TRICS
- Added a second generation motor
2009-02-03 08:05:39 +00:00

38 lines
1.2 KiB
C

/*----------------------------------------------------------------------
UB calculation routines for four circle diffraction.
This is the interpreter interface to functionality implemented
in fourlib.c
copyright: see file COPYRIGHT
Mark Koennecke, March 2005
-----------------------------------------------------------------------*/
#ifndef SICSUBCALC
#define SICSUBCALC
#include "sics.h"
#include "matrix/matrix.h"
#include "cell.h"
#include "hkl.h"
#include "ubfour.h"
/*---------------------------------------------------------------------*/
typedef struct {
pObjectDescriptor pDes;
pHKL hkl;
lattice direct;
reflection r1, r2, r3;
MATRIX UB;
double allowedDeviation;
int indexSearchLimit;
int maxSuggestions;
} UBCALC, *pUBCALC;
/*-------------------------------------------------------------------*/
int MakeUBCalc(SConnection *pCon,SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int CreateUBCalc(SConnection *pCon,SicsInterp *pSics, char *name, char *hkl);
int UBCalcWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
reflection getReflection(void *ubcalc, int no);
#endif