17 lines
605 B
C++
17 lines
605 B
C++
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#include "HDF5DataFilePluginBkg.h"
|
|
|
|
void HDF5DataFilePluginBkg::OpenFile(HDF5File &data_file, const DataMessage &msg) {}
|
|
|
|
void HDF5DataFilePluginBkg::Write(const DataMessage &msg, uint64_t image_number) {
|
|
if (msg.bkg_estimate)
|
|
bkg_estimate[image_number] = msg.bkg_estimate.value();
|
|
}
|
|
|
|
void HDF5DataFilePluginBkg::WriteFinal(HDF5File &data_file) {
|
|
if (!bkg_estimate.empty())
|
|
data_file.SaveVector("/entry/bkg_estimate", bkg_estimate.vec());
|
|
}
|