mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 02:34:36 +02:00
Move buffer dataset names as variables
This commit is contained in:
@@ -51,6 +51,13 @@ namespace core_buffer {
|
||||
// HWM for live stream from buffer.
|
||||
const int BUFFER_ZMQ_SNDHWM = 100;
|
||||
|
||||
// Name of the dataset where we store the images.
|
||||
const std::string BUFFER_H5_FRAME_DATASET = "image";
|
||||
|
||||
// Name of the dataset where we store metadata.
|
||||
const std::string BUFFER_H5_METADATA_DATASET = "metadata";
|
||||
|
||||
// IPC address of the live stream.
|
||||
const std::string BUFFER_LIVE_IPC_URL = "ipc:///tmp/sf-live-";
|
||||
|
||||
// N of IO threads to receive data from modules.
|
||||
|
||||
@@ -38,7 +38,7 @@ void BufferH5Writer::create_file(const string& filename)
|
||||
data_dset_prop.setChunk(3, data_dset_chunking);
|
||||
|
||||
current_image_dataset_ = h5_file_.createDataSet(
|
||||
"image",
|
||||
BUFFER_H5_FRAME_DATASET,
|
||||
H5::PredType::NATIVE_UINT16,
|
||||
data_dspace,
|
||||
data_dset_prop);
|
||||
@@ -49,7 +49,7 @@ void BufferH5Writer::create_file(const string& filename)
|
||||
meta_dset_prop.setChunk(2, meta_dset_chunking);
|
||||
|
||||
current_metadata_dataset_ = h5_file_.createDataSet(
|
||||
"metadata",
|
||||
BUFFER_H5_METADATA_DATASET,
|
||||
H5::PredType::NATIVE_UINT64,
|
||||
meta_dspace,
|
||||
meta_dset_prop);
|
||||
|
||||
Reference in New Issue
Block a user