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