From 23a26fdea6791df58982a73212ee9ea70dc6ad37 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 6 Jul 2021 15:41:09 +0200 Subject: [PATCH] Remove config object from h5 writer --- std-det-writer/include/JFH5Writer.hpp | 5 +++-- std-det-writer/src/JFH5Writer.cpp | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/std-det-writer/include/JFH5Writer.hpp b/std-det-writer/include/JFH5Writer.hpp index f413792..b979285 100644 --- a/std-det-writer/include/JFH5Writer.hpp +++ b/std-det-writer/include/JFH5Writer.hpp @@ -12,8 +12,8 @@ extern "C" { class JFH5Writer { - const std::string root_folder_; const std::string detector_name_; + const std::string root_folder_; static const int64_t NO_RUN_ID = -1; @@ -35,7 +35,8 @@ class JFH5Writer { void close_file(); public: - explicit JFH5Writer(const BufferUtils::DetectorConfig& config); + explicit JFH5Writer( + const std::string detector_name, const std::string root_folder); ~JFH5Writer(); void open_run(int64_t run_id, diff --git a/std-det-writer/src/JFH5Writer.cpp b/std-det-writer/src/JFH5Writer.cpp index 811060f..3e58a1d 100644 --- a/std-det-writer/src/JFH5Writer.cpp +++ b/std-det-writer/src/JFH5Writer.cpp @@ -15,9 +15,10 @@ using namespace std; using namespace buffer_config; using namespace live_writer_config; -JFH5Writer::JFH5Writer(const BufferUtils::DetectorConfig& config): - root_folder_(config.buffer_folder), - detector_name_(config.detector_name) +JFH5Writer::JFH5Writer( + const std::string detector_name, const std::string root_folder): + detector_name_(detector_name), + root_folder_(root_folder) { }