mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
testing jungfrau stuff
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@35 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
@ -73,11 +73,11 @@ class jungfrau02Data : public chiptestBoardData {
|
||||
uint16_t m=0, d=0;
|
||||
if (ix>=0 && ix<nx && iy>=0 && iy<ny && dataMap[iy][ix]>=0 && dataMap[iy][ix]<dataSize) {
|
||||
m=dataMask[iy][ix];
|
||||
d=*((uint16_t*)(data+dataMap[iy][ix]));
|
||||
d=*(((uint16_t*)(data))+dataMap[iy][ix]);
|
||||
if (nAdc==3) {
|
||||
if (*(uint16_t*)(data+dataMap[iy][ix]+1)>8000)
|
||||
if (*((uint16_t*)(data)+dataMap[iy][ix]+1)>8000)
|
||||
d|=(1<<14); // set gain bit 0
|
||||
if (*(uint16_t*)(data+dataMap[iy][ix]+2)>8000)
|
||||
if (*((uint16_t*)(data)+dataMap[iy][ix]+2)>8000)
|
||||
d|=(1<<15); // set gain bit 1
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user