Minimal shared memory for receiver

This commit is contained in:
Dhanya Thattil
2020-03-19 02:01:32 -04:00
committed by GitHub
parent 8ab742c2b7
commit 4813b5567a
24 changed files with 1045 additions and 1117 deletions

View File

@ -59,11 +59,11 @@ void Implementation::InitializeMembers() {
silentMode = false;
fifoDepth = 0;
frameDiscardMode = NO_DISCARD;
framePadding = false;
framePadding = true;
// file parameters
fileFormatType = BINARY;
filePath = "";
filePath = "/";
fileName = "run";
fileIndex = 0;
fileWriteEnable = true;
@ -340,6 +340,11 @@ void Implementation::setDetectorPositionId(const int id) {
LOG(logDEBUG3) << __SHORT_AT__ << " called";
detID = id;
LOG(logINFO) << "Detector Position Id:" << detID;
// update zmq port
streamingPort = DEFAULT_ZMQ_RX_PORTNO +
(detID * (myDetectorType == EIGER ? 2 : 1));
for (unsigned int i = 0; i < dataProcessor.size(); ++i) {
dataProcessor[i]->SetupFileWriter(
fileWriteEnable, (int *)numDet, &framesPerFile, &fileName, &filePath,