mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@285 951219d9-93cf-4727-9268-0efd64621fa3
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
#ifndef ANGLE_CONVERSION_CONSTANT_H
|
|
#define ANGLE_CONVERSION_CONSTANT_H
|
|
|
|
class angleConversionConstant {
|
|
|
|
public:
|
|
|
|
angleConversionConstant(){};
|
|
angleConversionConstant(double c, double r, double o, double t){center=c; r_conversion=r; offset=o; tilt=t;};
|
|
|
|
//typedef struct {
|
|
double center; /**< center of the module (channel at which the radius is perpendicular to the module surface) */
|
|
double ecenter; /**< error in the center determination */
|
|
double r_conversion; /**< detector pixel size (or strip pitch) divided by the diffractometer radius */
|
|
double er_conversion; /**< error in the r_conversion determination */
|
|
double offset; /**< the module offset i.e. the position of channel 0 with respect to the diffractometer 0 */
|
|
double eoffset; /**< error in the offset determination */
|
|
double tilt; /**< ossible tilt in the orthogonal direction (unused)*/
|
|
double etilt; /**< error in the tilt determination */
|
|
//} angleConversionConstant;
|
|
|
|
double getCenter(){return center;};
|
|
double getConversion(){return r_conversion;};
|
|
double getOffset(){return offset;};
|
|
double getTilt(){return tilt;};
|
|
|
|
void setAngConvConstant(angleConversionConstant *acc) {\
|
|
center=acc->center; \
|
|
ecenter=acc->ecenter; \
|
|
r_conversion=acc->r_conversion; \
|
|
er_conversion=acc->er_conversion; \
|
|
offset=acc->offset; \
|
|
eoffset=acc->eoffset; \
|
|
tilt=acc->tilt; \
|
|
etilt=acc->etilt; \
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|