implemented a trial error class

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@434 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-22 11:16:37 +00:00
parent 3be74327f3
commit a4206208c9
10 changed files with 116 additions and 24 deletions

View File

@ -247,7 +247,6 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
/** online flag - is set if the receiver is connected, unset if socket connection is not possible */
int receiverOnlineFlag;
} sharedSlsDetector;
@ -1515,6 +1514,25 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
int fillModuleMask(int *mM);
/**
Sets error mask
@param error mask to be set to
/returns error mask
*/
int setErrorMask(int i=-1){errorMask=i;return errorMask;}
/**returns error mask */
int getErrorMask(){return errorMask;}
/**
clears error mask
/returns error mask
*/
int clearErrorMask(){errorMask=0;return errorMask;}
protected:
@ -1555,11 +1573,8 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
socket for data acquisition
*/
MySocketTCP *dataSocket;
/** pointer to flat field coefficients */
double *ffcoefficients;
/** pointer to flat field coefficient errors */
@ -1579,6 +1594,10 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
receiverInterface *thisReceiver;
/** Error Mask*/
int errorMask;
/** Initializes the shared memory
\param type is needed to define the size of the shared memory
\param id is the detector id needed to define the shared memory id