28 lines
793 B
C++
28 lines
793 B
C++
// Copyright (2019-2024) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_AZIMUTHALINTEGRATION_H
|
|
#define JUNGFRAUJOCH_AZIMUTHALINTEGRATION_H
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
#include <cmath>
|
|
|
|
#include "../common/DiffractionExperiment.h"
|
|
#include "AzimuthalIntegrationMapping.h"
|
|
|
|
class AzimuthalIntegration {
|
|
std::vector<uint16_t> pixel_to_bin;
|
|
std::vector<float> corrections;
|
|
std::vector<float> solid_angle_corr;
|
|
const uint16_t nbins;
|
|
std::vector<int64_t> sum;
|
|
std::vector<int64_t> count;
|
|
public:
|
|
AzimuthalIntegration(const DiffractionExperiment& experiment, const AzimuthalIntegrationMapping& mapping);
|
|
void Process(const int16_t *data, size_t npixel);
|
|
void GetResult(std::vector<double> &result) const;
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_AZIMUTHALINTEGRATION_H
|