Possibility to sum up only fractions of frames in the Zmq process

This commit is contained in:
2019-09-27 13:05:29 +02:00
parent c654ac7f1f
commit 98ae93fdde
2 changed files with 195 additions and 97 deletions

View File

@ -204,15 +204,15 @@ class moench03T1ZmqDataNew : public slsDetectorData<uint16_t> {
virtual char *readNextFrame(ifstream &filebin, int& ff, int &np, char *data) {
char *retval=0;
int nd;
int fnum = -1;
/* char *retval=0; */
/* int nd; */
/* int fnum = -1; */
np=0;
int pn;
/* int pn; */
if (ff>=0)
fnum=ff;
/* if (ff>=0) */
/* fnum=ff; */
if (filebin.is_open()) {
if (filebin.read(data, 32*2*nSamples) ){
@ -221,7 +221,7 @@ class moench03T1ZmqDataNew : public slsDetectorData<uint16_t> {
return data;
}
}
return NULL;
return NULL;