summaryrefslogtreecommitdiffstats
path: root/src/Detector/Detector.cpp
diff options
context:
space:
mode:
authorTobias Frust <tobiasfrust@gmail.com>2016-07-21 10:23:08 +0200
committerTobias Frust <tobiasfrust@gmail.com>2016-07-21 10:23:08 +0200
commitebcd23f3d86976fbfe2768d3ee0925db2cff773a (patch)
treec374a6ca77042c31485d6ef9ade11f108436371e /src/Detector/Detector.cpp
parent8940620375c3bd9fef263fe9352c22384215cb13 (diff)
downloadods-ebcd23f3d86976fbfe2768d3ee0925db2cff773a.tar.gz
ods-ebcd23f3d86976fbfe2768d3ee0925db2cff773a.tar.bz2
ods-ebcd23f3d86976fbfe2768d3ee0925db2cff773a.tar.xz
ods-ebcd23f3d86976fbfe2768d3ee0925db2cff773a.zip
packet size is now configurable
Diffstat (limited to 'src/Detector/Detector.cpp')
-rw-r--r--src/Detector/Detector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Detector/Detector.cpp b/src/Detector/Detector.cpp
index 5dde6d1..03abffe 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 unsigned int timeIntervall, const int packetSize) :
timeIntervall_{timeIntervall},
numberOfDetectorModules_{27} {
modules_.reserve(numberOfDetectorModules_);
for(auto i = 0; i < numberOfDetectorModules_; i++){
- modules_.emplace_back(i, address, configPath);
+ modules_.emplace_back(i, address, configPath, packetSize);
}
}