gotthard2: works

This commit is contained in:
2020-01-20 17:03:11 +01:00
parent 23dffa47df
commit c4137dc309
5 changed files with 30 additions and 3 deletions

View File

@ -437,6 +437,7 @@ int ClientInterface::set_detector_type(Interface &socket) {
case MOENCH:
case JUNGFRAU:
case MYTHEN3:
case GOTTHARD2:
break;
default:
throw RuntimeError("Unknown detector type: " + std::to_string(arg));
@ -581,7 +582,7 @@ int ClientInterface::set_dynamic_range(Interface &socket) {
}
break;
case MYTHEN3:
if (dr == 32) {
if (dr == 1 || dr == 4 || dr == 16 || dr == 32) {
exists = true;
}
break;

View File

@ -218,6 +218,7 @@ void Implementation::setDetectorType(const detectorType d) {
case CHIPTESTBOARD:
case MOENCH:
case MYTHEN3:
case GOTTHARD2:
FILE_LOG(logINFO) << " ***** " << sls::ToString(d)
<< " Receiver *****";
break;
@ -244,7 +245,10 @@ void Implementation::setDetectorType(const detectorType d) {
break;
case MYTHEN3:
generalData = new Mythen3Data();
break;
break;
case GOTTHARD2:
generalData = new Gotthard2Data();
break;
default:
break;
}