summaryrefslogtreecommitdiffstats
path: root/src/Detector/Detector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Detector/Detector.cpp')
-rw-r--r--src/Detector/Detector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Detector/Detector.cpp b/src/Detector/Detector.cpp
index 5dde6d1..43402ee 100644
--- a/src/Detector/Detector.cpp
+++ b/src/Detector/Detector.cpp
@@ -10,12 +10,12 @@
#include "Detector.h"
-Detector::Detector(const std::string& address, const std::string& configPath, const unsigned int timeIntervall) :
+Detector::Detector(const std::string& address, const std::string& configPath, const int firstPort, const int numPorts, const unsigned int timeIntervall) :
timeIntervall_{timeIntervall},
- numberOfDetectorModules_{27} {
+ numberOfDetectorModules_{numPorts} {
modules_.reserve(numberOfDetectorModules_);
for(auto i = 0; i < numberOfDetectorModules_; i++){
- modules_.emplace_back(i, address, configPath);
+ modules_.emplace_back(i, address, firstPort + i, configPath);
}
}