mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-31 16:41:18 +01:00
wip refactoring
This commit is contained in:
@@ -155,6 +155,7 @@ void Implementation::setDetectorType(const detectorType d) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// number of portrois should be equal to number of interfaces
|
||||||
if (d == EIGER) {
|
if (d == EIGER) {
|
||||||
ResetRois();
|
ResetRois();
|
||||||
}
|
}
|
||||||
@@ -1077,6 +1078,7 @@ void Implementation::setNumberofUDPInterfaces(const int n) {
|
|||||||
// fifo
|
// fifo
|
||||||
SetupFifoStructure();
|
SetupFifoStructure();
|
||||||
|
|
||||||
|
// number of portrois should be equal to number of interfaces
|
||||||
ResetRois();
|
ResetRois();
|
||||||
|
|
||||||
// create threads
|
// create threads
|
||||||
|
|||||||
@@ -208,20 +208,6 @@ std::string CreateVirtualHDF5File(
|
|||||||
completeRoi = true;
|
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
|
// virtual file name
|
||||||
std::ostringstream osfn;
|
std::ostringstream osfn;
|
||||||
osfn << filePath << "/" << fileNamePrefix << "_virtual"
|
osfn << filePath << "/" << fileNamePrefix << "_virtual"
|
||||||
|
|||||||
Reference in New Issue
Block a user