added the other gain modes

This commit is contained in:
2021-08-03 18:02:42 +02:00
parent e20022f139
commit 0666afc642
6 changed files with 67 additions and 12 deletions

View File

@ -1179,7 +1179,9 @@ class Detector {
/** [Jungfrau]*/
Result<defs::gainMode> getGainMode(Positions pos = {}) const;
/** [Jungfrau] Options: NORMAL_GAIN_MODE, FORCE_SWITCH_G1, FORCE_SWITCH_G2\n
/** [Jungfrau] Options: NORMAL_GAIN_MODE, FORCE_SWITCH_G1, FORCE_SWITCH_G2,
* FIX_G1, FIX_G2, FIX_G0, FIX_HG0 \n\CAUTION: Do not use FIX_G0 and FIX_HG0
* blindly, you can damage the detector!!!\n
*/
void setGainMode(const defs::gainMode mode, Positions pos = {});

View File

@ -1877,7 +1877,9 @@ class CmdProxy {
INTEGER_COMMAND_VEC_ID(
gainmode, getGainMode, setGainMode,
sls::StringTo<slsDetectorDefs::gainMode>,
"[forceswitchg1, forceswitchg2]\n\t[Jungfrau] Gain mode.");
"[forceswitchg1|forceswitchg2|fixgain1|fixgain2|fixgain0|"
"fixhighgain0]\n\t[Jungfrau] Gain mode.\n\tCAUTION: Do not use "
"fixgain0 and fixhighgain0 blindly, you can damage the detector!!!");
/* Gotthard Specific */
TIME_GET_COMMAND(exptimel, getExptimeLeft,