mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
rewrote settings enums, gainmode enums
This commit is contained in:
@ -456,6 +456,11 @@ TEST_CASE("gainmode", "[.cmd]") {
|
||||
proxy.Call("gainmode", {}, -1, GET, oss);
|
||||
REQUIRE(oss.str() == "gainmode forceswitchg1\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("gainmode", {"dynamicgain"}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "gainmode dynamicgain\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("gainmode", {"forceswitchg2"}, -1, PUT, oss);
|
||||
@ -473,8 +478,8 @@ TEST_CASE("gainmode", "[.cmd]") {
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("gainmode", {"dynamic"}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "gainmode dynamic\n");
|
||||
proxy.Call("gainmode", {"fixg0"}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "gainmode fixg0\n");
|
||||
}
|
||||
for (int i = 0; i != det.size(); ++i) {
|
||||
det.setGainMode(prev_val[i], {i});
|
||||
|
@ -150,7 +150,7 @@ TEST_CASE("settings", "[.cmd]") {
|
||||
allSett.push_back("lowgain");
|
||||
allSett.push_back("mediumgain");
|
||||
allSett.push_back("veryhighgain");
|
||||
allSett.push_back("dynamichg0");
|
||||
allSett.push_back("highgain0");
|
||||
allSett.push_back("fixgain1");
|
||||
allSett.push_back("fixgain2");
|
||||
allSett.push_back("verylowgain");
|
||||
@ -164,12 +164,13 @@ TEST_CASE("settings", "[.cmd]") {
|
||||
allSett.push_back("g4_lg");
|
||||
allSett.push_back("forceswitchg1");
|
||||
allSett.push_back("forceswitchg2");
|
||||
allSett.push_back("gain0");
|
||||
|
||||
std::vector<std::string> sett;
|
||||
switch (det_type) {
|
||||
case defs::JUNGFRAU:
|
||||
sett.push_back("dynamicgain");
|
||||
sett.push_back("dynamichg0");
|
||||
sett.push_back("gain0");
|
||||
sett.push_back("highgain0");
|
||||
break;
|
||||
case defs::GOTTHARD:
|
||||
sett.push_back("highgain");
|
||||
|
Reference in New Issue
Block a user