added and fixed gotthard 25um file and zmq photon finder

This commit is contained in:
2017-12-19 13:40:05 +01:00
parent 7602ffc5ac
commit 31589ce352
15 changed files with 925 additions and 119 deletions

View File

@ -125,7 +125,7 @@ int main(int argc, char *argv[]) {
while(1) {
cout << "+++++++++++++++++++++++++++++++LOOP" << endl;
// cout << "+++++++++++++++++++++++++++++++LOOP" << endl;
// get header, (if dummy, fail is on parse error or end of acquisition)
if (!zmqsocket->ReceiveHeader(0, acqIndex, frameIndex, subframeIndex, filename, fileindex)){
// if (!zmqsocket->ReceiveHeader(0, acqIndex, frameIndex, subframeIndex, filename, fileindex)) {
@ -155,8 +155,11 @@ int main(int argc, char *argv[]) {
zmqsocket2->SendHeaderData(0, true, SLS_DETECTOR_JSON_HEADER_VERSION);
cprintf(RED, "Sent Dummy\n");
}
fclose(of);
of=NULL;
mt->clearImage();
if (of) {
fclose(of);
of=NULL;
}
continue; //continue to not get out
}