mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 07:47:12 +02:00
jungfrau: gainmode
This commit is contained in:
@ -1483,6 +1483,26 @@ void Detector::setStorageCellDelay(ns value, Positions pos) {
|
||||
pimpl->Parallel(&Module::setStorageCellDelay, pos, value.count());
|
||||
}
|
||||
|
||||
std::vector<defs::gainMode> Detector::getGainModeList() const {
|
||||
switch (getDetectorType().squash()) {
|
||||
case defs::JUNGFRAU:
|
||||
return std::vector<defs::gainMode>{defs::NORMAL_GAIN_MODE,
|
||||
defs::FORCE_SWITCH_G1,
|
||||
defs::FORCE_SWITCH_G2};
|
||||
break;
|
||||
default:
|
||||
throw RuntimeError("Gain mode is not implemented for this detector.");
|
||||
}
|
||||
}
|
||||
|
||||
Result<defs::gainMode> Detector::getGainMode(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getGainMode, pos);
|
||||
}
|
||||
|
||||
void Detector::setGainMode(const defs::gainMode mode, Positions pos) {
|
||||
pimpl->Parallel(&Module::setGainMode, pos, mode);
|
||||
}
|
||||
|
||||
// Gotthard Specific
|
||||
|
||||
Result<defs::ROI> Detector::getROI(Positions pos) const {
|
||||
|
Reference in New Issue
Block a user