Files
Jungfraujoch/image_analysis/RadialIntegrationMapping.h

26 lines
881 B
C++

// Copyright (2019-2023) Paul Scherrer Institute
#ifndef JUNGFRAUJOCH_RADIALINTEGRATIONMAPPING_H
#define JUNGFRAUJOCH_RADIALINTEGRATIONMAPPING_H
#include <optional>
#include "../common/DiffractionExperiment.h"
class RadialIntegrationMapping {
const double low_q, high_q, q_spacing;
std::vector<float> bin_to_q;
std::vector<float> solid_angle_corr;
std::vector<uint16_t> pixel_to_bin_raw;
uint16_t max_bin_number;
public:
RadialIntegrationMapping(const DiffractionExperiment& experiment);
[[nodiscard]] uint16_t GetBinNumber() const;
[[nodiscard]] const std::vector<uint16_t>& GetPixelToBinMappingRaw() const;
[[nodiscard]] const std::vector<float> &GetBinToQ() const;
[[nodiscard]] const std::vector<float> &GetSolidAngleCorr() const;
[[nodiscard]] double QToBin(double q) const;
};
#endif //JUNGFRAUJOCH_RADIALINTEGRATIONMAPPING_H