mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 19:42:22 +02:00
Fix bugs in ReplayH5Reader
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "jungfrau.hpp"
|
||||
#include <H5Cpp.h>
|
||||
#include <memory>
|
||||
#include "buffer_config.hpp"
|
||||
|
||||
|
||||
class ReplayH5Reader {
|
||||
@@ -17,10 +18,10 @@ class ReplayH5Reader {
|
||||
H5::DataSet dset_metadata_;
|
||||
H5::DataSet dset_frame_;
|
||||
|
||||
std::unique_ptr<char[]> frame_buffer = make_unique<char[]>(
|
||||
MODULE_N_BYTES * REPLAY_READ_BUFFER_SIZE);
|
||||
std::unique_ptr<char[]> metadata_buffer = make_unique<char[]>(
|
||||
sizeof(ModuleFrame) * FILE_MOD);
|
||||
std::unique_ptr<char[]> frame_buffer = std::make_unique<char[]>(
|
||||
core_buffer::MODULE_N_BYTES * core_buffer::REPLAY_READ_BUFFER_SIZE);
|
||||
std::unique_ptr<char[]> metadata_buffer = std::make_unique<char[]>(
|
||||
sizeof(ModuleFrame) * core_buffer::FILE_MOD);
|
||||
uint64_t buffer_start_pulse_id_ = 0;
|
||||
uint64_t buffer_end_pulse_id_ = 0;
|
||||
void prepare_buffer_for_pulse(const uint64_t pulse_id);
|
||||
|
||||
Reference in New Issue
Block a user