26 lines
788 B
C++
26 lines
788 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef JUNGFRAUJOCH_RADIALINTEGRATIONPROFILE_H
|
|
#define JUNGFRAUJOCH_RADIALINTEGRATIONPROFILE_H
|
|
|
|
#include <vector>
|
|
#include <mutex>
|
|
#include <jfjoch.pb.h>
|
|
|
|
#include "RadialIntegrationMapping.h"
|
|
|
|
class RadialIntegrationProfile {
|
|
mutable std::mutex m;
|
|
std::vector<float> sum;
|
|
std::vector<float> count;
|
|
std::vector<float> bin_to_q;
|
|
public:
|
|
explicit RadialIntegrationProfile(RadialIntegrationMapping &mapping, const DiffractionExperiment &experiment);
|
|
void Add(const std::vector<float> &sum, const std::vector<float> &count);
|
|
std::vector<float> GetResult() const;
|
|
void GetPlot(JFJochProtoBuf::Plot &plot) const;
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_RADIALINTEGRATIONPROFILE_H
|