diff --git a/slsDetectorCalibration/energyCalibration_cpp.d b/slsDetectorCalibration/energyCalibration_cpp.d deleted file mode 100644 index c7e9115cd..000000000 --- a/slsDetectorCalibration/energyCalibration_cpp.d +++ /dev/null @@ -1,6 +0,0 @@ - -# DO NOT DELETE - -./energyCalibration_cpp.so: energyCalibration.h -./energyCalibration_cpp.so: /afs/psi.ch/project/sls_det_software/root_v5.32.01_sl5_32bit/include/cintdictversion.h /afs/psi.ch/project/sls_det_software/root_v5.32.01_sl5_32bit/include/RVersion.h -energyCalibration_cpp__ROOTBUILDVERSION= 5.32/01 diff --git a/slsDetectorCalibration/slsDetectorData.h b/slsDetectorCalibration/slsDetectorData.h new file mode 100644 index 000000000..709afdb5b --- /dev/null +++ b/slsDetectorCalibration/slsDetectorData.h @@ -0,0 +1,91 @@ +#ifndef SLSDETECTORDATA_H +#define SLSDETECTORDATA_H + +class slsDetectorData { + + /** + + Constructor (no error checking if datasize and offsets are compatible!) + \param npx number of pixels in the x direction + \param npy number of pixels in the y direction + \param ds size of the dataset + \param dMap array of size nx*ny storing the pointers to the data in the dataset (as offset) + \param dMask Array of size nx*ny storing the polarity of the data in the dataset (should be 0 if no inversion is required, 0xffffffff is inversion is required) + + + */ + slsDetectorData(int npx, int npy=1, int ds=-1, int **dMap=NULL, int **dMask=NULL) { + nx=npx; + ny=npy; + + if (ds<=0) + dataSize=nx*ny; + else + dataSize=ds; + + dataMap=new int[nx][ny]; + dataMask=new int[nx][ny]; + + if (dMap==NULL) { + for (int iy=0; iy