slsDetectorSoftware: bug fix, changing dr didnt change the databytesinclgappixels immediately

This commit is contained in:
maliakal_d 2018-06-01 11:04:54 +02:00
parent f33b3cdc79
commit 2339fb2a0e

View File

@ -5299,8 +5299,7 @@ int slsDetector::setDynamicRange(int n){
thisDetector->dataBytesInclGapPixels =
(thisDetector->nMod[X] * thisDetector->nChip[X] * thisDetector->nChan[X] + thisDetector->gappixels * thisDetector->nGappixels[X]) *
(thisDetector->nMod[Y] * thisDetector->nChip[Y] * thisDetector->nChan[Y] + thisDetector->gappixels * thisDetector->nGappixels[Y]) *
thisDetector->dynamicRange/8;
retval/8;
if (thisDetector->myDetectorType==JUNGFRAUCTB) {
// thisDetector->nChip[X]=retval/16;
// thisDetector->nChips=thisDetector->nChip[X]*thisDetector->nChip[Y];