From 5e59c86d7249b599e5b208c85e3ebde1d7284f1a Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Tue, 31 Mar 2015 14:41:06 +0200 Subject: [PATCH] Jungfrau10ModuleData modified --- slsDetectorCalibration/jungfrau10ModuleData.h | 61 ++++++++++--------- slsDetectorCalibration/moench02CtbData.h | 22 ------- slsDetectorCalibration/slsDetectorData.h | 28 ++++++--- 3 files changed, 50 insertions(+), 61 deletions(-) diff --git a/slsDetectorCalibration/jungfrau10ModuleData.h b/slsDetectorCalibration/jungfrau10ModuleData.h index a107f5058..39db07216 100644 --- a/slsDetectorCalibration/jungfrau10ModuleData.h +++ b/slsDetectorCalibration/jungfrau10ModuleData.h @@ -25,7 +25,7 @@ class jungfrau10ModuleData : public slsDetectorData { */ - jungfrau10ModuleData(int ns=16384): slsDetectorData(256*4, 256*2, ns*2*32, NULL, NULL) , nadc(32), sc_width(64), sc_height(256) { + jungfrau10ModuleData(int ns=16384): slsDetectorData(256*4, 256*2, 256*256*8*2, NULL, NULL, NULL) , iframe(0), nadc(32), sc_width(64), sc_height(256) { @@ -35,48 +35,49 @@ class jungfrau10ModuleData : public slsDetectorData { int iadc; int ix, iy; - + int ichip; - cout << nx << " " << ny << " " << dataSize << endl; + // cout << sizeof(uint16_t) << endl; for (iadc=0; iadc=dataSize) - cout << "Error: pointer " << dataMap[row][col] << " out of range "<< endl; + + +/* if (iadc=ny || col<0 || col>=nx) { + cout << "Wrong row, column " << row << " " << col << " " << iadc << " " << i << endl; + } else + dataMap[row][col]=(nadc*i+iadc)*2; + if (dataMap[row][col]<0 || dataMap[row][col]>=dataSize) + cout << "Error: pointer " << dataMap[row][col] << " out of range " << row << " " << col <<" " << iadc << " " << i << endl; + else { + xmap[nadc*i+iadc]=col; + ymap[nadc*i+iadc]=row; + + } } } - for (int i=0; i { int iadc; int ix, iy; - xmap=new int[nx*ny]; - ymap=new int[nx*ny]; - @@ -54,25 +51,6 @@ class moench02CtbData : public slsDetectorData { } } - for (int i=0; i