This commit is contained in:
2026-05-29 15:07:11 +02:00
parent fd14082b3b
commit 4977fb2ee0
4 changed files with 17 additions and 3 deletions
+3
View File
@@ -204,6 +204,9 @@ void DetectorImpl::addModule(const std::string &name) {
// get type by connecting
detectorType type = Module::getTypeFromDetector(hostname, port);
LOG(logDEBUG) << "Detector type of module " << name << " is "
<< std::to_string(type);
// gotthard2 cannot have more than 2 modules (50um=1, 25um=2
if (type == GOTTHARD2 && modules.size() > 2) {
throw RuntimeError("GotthardII cannot have more than 2 modules. Please "