#ifndef GOTTHARDSHORTMODULEDATA_H #define GOTTHARDSHORTMODULEDATA_H #include "slsReceiverData.h" class gotthardShortModuleData : public slsReceiverData { public: /** Implements the slsReceiverData structure for the gotthard short read out by a module i.e. using the slsReceiver (1x256 pixels, 1 packet 256 large etc.) \param c crosstalk parameter for the output buffer */ gotthardShortModuleData(double c=0): slsReceiverData(xpixels, ypixels, npackets, buffersize), xtalk(c){ uint16_t **dMask; int **dMap; int ix, iy; int offset = 2; dMask=new uint16_t*[ypixels]; dMap=new int*[ypixels]; for (int i = 0; i < ypixels; i++) { dMap[i] = new int[xpixels]; dMask[i] = new uint16_t[xpixels]; } for(ix=0; ix::getValue(data, ix, iy); else return slsDetectorData::getValue(data, ix, iy)-xtalk*slsDetectorData::getValue(data, ix-1, iy); }; /** sets the output buffer crosstalk correction parameter \param c output buffer crosstalk correction parameter to be set \returns current value for the output buffer crosstalk correction parameter */ double setXTalk(double c) {xtalk=c; return xtalk;} /** gets the output buffer crosstalk parameter \returns current value for the output buffer crosstalk correction parameter */ double getXTalk() {return xtalk;} private: double xtalk; /**