27 lines
921 B
C++
27 lines
921 B
C++
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JUNGFRAUJOCH_HDF5DATAFILEPLUGINAZINT_H
|
|
#define JUNGFRAUJOCH_HDF5DATAFILEPLUGINAZINT_H
|
|
|
|
#include "HDF5DataFilePlugin.h"
|
|
|
|
class HDF5DataFilePluginAzInt : public HDF5DataFilePlugin {
|
|
const size_t azimuthal_bins;
|
|
const size_t q_bins;
|
|
|
|
std::vector<float> az_int_bin_to_q;
|
|
std::vector<float> az_int_bin_to_two_theta;
|
|
std::vector<float> az_int_bin_to_phi;
|
|
std::vector<float> az_int_image;
|
|
|
|
// std::unique_ptr<HDF5DataSet> dataset;
|
|
public:
|
|
explicit HDF5DataFilePluginAzInt(const StartMessage &start);
|
|
void OpenFile(HDF5File &data_file, const DataMessage& msg) override;
|
|
void Write(const DataMessage& msg, uint64_t image_number) override;
|
|
void WriteFinal(HDF5File &data_file) override;
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_HDF5DATAFILEPLUGINAZINT_H
|