included without root writing

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@45 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
l_maliakal_d
2014-03-07 12:07:40 +00:00
parent eee5f7f743
commit 98c0bd163e
3 changed files with 39 additions and 35 deletions

View File

@ -4,10 +4,7 @@
#define X_PIXELS 1280
#define Y_PIXELS 1
#define NPACKETS 2
#define BUFFERSIZE 1286
#define FRAMEMASK 0xFFFFFFFE
#define PACKETMASK 1
@ -28,7 +25,7 @@ public:
*/
gotthardModuleData(double c=0): slsReceiverData<uint16_t>(X_PIXELS, Y_PIXELS, NPACKETS, BUFFERSIZE), xtalk(c) {
gotthardModuleData(double c=0): slsReceiverData<uint16_t>(xpixels, ypixels, npackets, buffersize), xtalk(c) {
uint16_t **dMask;
int **dMap;
@ -36,23 +33,23 @@ public:
int initial_offset = 2;
int offset = initial_offset;
dMask=new uint16_t*[Y_PIXELS];
dMap=new int*[Y_PIXELS];
for (int i = 0; i < Y_PIXELS; i++) {
dMap[i] = new int[X_PIXELS];
dMask[i] = new uint16_t[X_PIXELS];
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<Y_PIXELS; ++ix)
for(iy=0; iy<X_PIXELS; ++iy)
for(ix=0; ix<ypixels; ++ix)
for(iy=0; iy<xpixels; ++iy)
dMask[ix][iy] = 0x0;
for(ix=0; ix<Y_PIXELS; ++ix){
if(ix == (Y_PIXELS/2)){
for(ix=0; ix<ypixels; ++ix){
if(ix == (ypixels/2)){
offset += initial_offset;//2
offset++;
}
for(iy=0; iy<X_PIXELS; ++iy){
for(iy=0; iy<xpixels; ++iy){
dMap[ix][iy] = offset;
offset++;
}
@ -138,10 +135,14 @@ public:
private:
double xtalk; /**<output buffer crosstalk correction parameter */
const static int xpixels = 1280;
const static int ypixels = 1;
const static int npackets = 2;
const static int buffersize = 1286;
};
#endif