From 1c14b146a29178a40a27a5ad8b497631834f01b3 Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Mon, 4 Sep 2017 14:28:30 +0200 Subject: [PATCH] T1 data structure from CPU added --- slsDetectorCalibration/moench03T1CtbData.h | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 slsDetectorCalibration/moench03T1CtbData.h diff --git a/slsDetectorCalibration/moench03T1CtbData.h b/slsDetectorCalibration/moench03T1CtbData.h new file mode 100644 index 000000000..4a99d3746 --- /dev/null +++ b/slsDetectorCalibration/moench03T1CtbData.h @@ -0,0 +1,158 @@ +#ifndef MOENCH03T1CTBDATA_H +#define MOENCH03T1CTBDATA_H +#include "slsDetectorData.h" + + + +class moench03T1CtbData : public slsDetectorData { + + private: + + int iframe; + int nadc; + int sc_width; + int sc_height; + public: + + + + + /** + Implements the slsReceiverData structure for the moench02 prototype read out by a module i.e. using the slsReceiver + (160x160 pixels, 40 packets 1286 large etc.) + \param c crosstalk parameter for the output buffer + + */ + + + moench03T1CtbData(int ns=5000): slsDetectorData(400, 400, ns*2*32, NULL, NULL) , nadc(32), sc_width(25), sc_height(200) { + + + int adc_nr[32]={300,325,350,375,300,325,350,375, \ + 200,225,250,275,200,225,250,275,\ + 100,125,150,175,100,125,150,175,\ + 0,25,50,75,0,25,50,75}; + + int row, col; + + int isample; + int iadc; + int ix, iy; + + + + + + for (iadc=0; iadc=2*400*400) + cout << "Error: pointer " << dataMap[row][col] << " out of range "<< endl; + + } + } + int adc4; + for (int i=0; i0) { + iframe++; + // cout << ib << "-" << endl; + return (char*)afifo_cont; + } else { + delete [] afifo_cont; + return NULL; + } + } + return NULL; + }; + + + + +}; + + + +#endif