25 lines
713 B
C++
25 lines
713 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<int64_t> sum;
|
|
std::vector<int64_t> count;
|
|
std::vector<float> bin_to_q;
|
|
public:
|
|
explicit RadialIntegrationProfile(RadialIntegrationMapping &mapping);
|
|
void Add(const std::vector<int32_t> &sum, const std::vector<int32_t> &count);
|
|
void GetPlot(JFJochProtoBuf::Plot &plot) const;
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_RADIALINTEGRATIONPROFILE_H
|