mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-30 16:11:19 +01:00
flippeddatax for jungfrau server
This commit is contained in:
@@ -458,6 +458,22 @@ int Module::setTrimEn(const std::vector<int> &energies) {
|
||||
return shm()->trimEnergies.size();
|
||||
}
|
||||
|
||||
bool Module::getFlippedDataAcrossXAxis() const {
|
||||
if (shm()->myDetectorType == EIGER) {
|
||||
return sendToReceiver<int>(F_SET_FLIPPED_DATA_RECEIVER, GET_FLAG);
|
||||
}
|
||||
return sendToDetector<int>(F_GET_FLIPPED_DATA_X);
|
||||
}
|
||||
|
||||
void Module::setFlippedDataAcrossXAxis(bool value) {
|
||||
if (shm()->myDetectorType == EIGER) {
|
||||
sendToReceiver<int>(F_SET_FLIPPED_DATA_RECEIVER,
|
||||
static_cast<int>(value));
|
||||
} else {
|
||||
sendToDetector(F_SET_FLIPPED_DATA_X, static_cast<int>(value), nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
bool Module::isVirtualDetectorServer() const {
|
||||
return sendToDetector<int>(F_IS_VIRTUAL);
|
||||
}
|
||||
@@ -1398,14 +1414,6 @@ void Module::setOverFlowMode(const bool enable) {
|
||||
sendToDetector(F_SET_OVERFLOW_MODE, static_cast<int>(enable), nullptr);
|
||||
}
|
||||
|
||||
bool Module::getFlippedDataX() const {
|
||||
return sendToReceiver<int>(F_SET_FLIPPED_DATA_RECEIVER, GET_FLAG);
|
||||
}
|
||||
|
||||
void Module::setFlippedDataX(bool value) {
|
||||
sendToReceiver<int>(F_SET_FLIPPED_DATA_RECEIVER, static_cast<int>(value));
|
||||
}
|
||||
|
||||
int64_t Module::getRateCorrection() const {
|
||||
return sendToDetector<int64_t>(F_GET_RATE_CORRECT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user