30 lines
694 B
C++
30 lines
694 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_INTEGRATIONSTATS_H
|
|
#define JFJOCH_INTEGRATIONSTATS_H
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include "../common/Reflection.h"
|
|
|
|
class IntegrationStats {
|
|
float d_min, d_max;
|
|
float one_over_dmax;
|
|
float one_over_dmin;
|
|
int32_t nshells;
|
|
|
|
std::vector<float> I;
|
|
std::vector<float> I_sigma;
|
|
std::vector<int64_t> count;
|
|
|
|
public:
|
|
IntegrationStats(float d_max_A, float d_min_A, int32_t nshells);
|
|
void AddReflection(const Reflection &r);
|
|
void Print();
|
|
float BFactor();
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_INTEGRATIONSTATS_H
|