bergamaschi 6e4be40f37 Bad channels correction separated from postProcessing
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@241 951219d9-93cf-4727-9268-0efd64621fa3
2012-09-06 12:03:22 +00:00

39 lines
1.3 KiB
C++

#ifndef ANGLE_CONVERSION_CONSTANT_H
#define ANGLE_CONVERSION_CONSTANT_H
class angleConversionConstant {
public:
//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;};
int 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