mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-16 01:21:20 +01:00
wip refactoring
This commit is contained in:
@@ -155,6 +155,7 @@ void Implementation::setDetectorType(const detectorType d) {
|
||||
break;
|
||||
}
|
||||
|
||||
// number of portrois should be equal to number of interfaces
|
||||
if (d == EIGER) {
|
||||
ResetRois();
|
||||
}
|
||||
@@ -1077,6 +1078,7 @@ void Implementation::setNumberofUDPInterfaces(const int n) {
|
||||
// fifo
|
||||
SetupFifoStructure();
|
||||
|
||||
// number of portrois should be equal to number of interfaces
|
||||
ResetRois();
|
||||
|
||||
// create threads
|
||||
|
||||
@@ -208,20 +208,6 @@ std::string CreateVirtualHDF5File(
|
||||
completeRoi = true;
|
||||
}
|
||||
|
||||
// roi not allowed in 4 bit mode and with gotthard 2 mods
|
||||
if (!completeRoi) {
|
||||
if (dynamicRange == 4) {
|
||||
throw std::runtime_error(
|
||||
"Skipping virtual hdf5 file since rx_roi is "
|
||||
"enabled and it is in 4 bit mode.");
|
||||
}
|
||||
if (gotthard25um && (numModX * numModY) == 2) {
|
||||
throw std::runtime_error(
|
||||
"Skipping virtual hdf5 file since rx_roi is "
|
||||
"enabled and there are 2 Gotthard 25um modules.");
|
||||
}
|
||||
}
|
||||
|
||||
// virtual file name
|
||||
std::ostringstream osfn;
|
||||
osfn << filePath << "/" << fileNamePrefix << "_virtual"
|
||||
|
||||
Reference in New Issue
Block a user