status start acqisition also has detector index now, eiger always has detector index

This commit is contained in:
Dhanya Maliakal
2016-05-11 11:29:27 +02:00
parent 7440ee2255
commit ae4eb88553
2 changed files with 6 additions and 5 deletions

View File

@ -6699,9 +6699,12 @@ string slsDetector::setFileName(string s) {
char arg[MAX_STR_LENGTH];
char retval[MAX_STR_LENGTH]="";
if(!s.empty()){
fileIO::setFileName(s);
if(thisDetector->myDetectorType == EIGER)
parentDet->setDetectorIndex(detId);
else if(parentDet->getNumberOfDetectors()>1)
parentDet->setDetectorIndex(detId);
s=parentDet->createReceiverFilePrefix();
}