mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 16:34:13 +02:00
Remove config object from h5 writer
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user