mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
sorted out problem with CPU read out
This commit is contained in:
@ -1432,7 +1432,7 @@ int* multiSlsDetector::getDataFromDetector() {
|
||||
|
||||
if(!nodatadetectortype)
|
||||
retval=new int[nel];
|
||||
|
||||
p=retval;
|
||||
// cout << "multi: " << thisMultiDetector->dataBytes << endl;
|
||||
|
||||
for (int id=0; id<thisMultiDetector->numberOfDetectors; id++) {
|
||||
@ -2251,11 +2251,11 @@ double* multiSlsDetector::decodeData(int *datain, int &nn, double *fdata) {
|
||||
dataout=fdata;
|
||||
else {
|
||||
if (detectors[0]->getDetectorsType()==JUNGFRAUCTB) {
|
||||
dataout=new double[thisMultiDetector->dataBytes/2];
|
||||
nn=thisMultiDetector->dataBytes/2;
|
||||
dataout=new double[nn];
|
||||
} else {
|
||||
dataout=new double[thisMultiDetector->numberOfChannels];
|
||||
nn=thisMultiDetector->numberOfChannels;
|
||||
dataout=new double[nn];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user