19 lines
539 B
C++
19 lines
539 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include "../common/Reflection.h"
|
|
#include "../common/UnitCell.h"
|
|
#include "IntegrationOutcome.h"
|
|
|
|
struct ResolutionStats {
|
|
float d_low = std::numeric_limits<float>::max();
|
|
float d_high = 0.0f;
|
|
int n_reflections = 0;
|
|
int n_images = 0;
|
|
};
|
|
|
|
ResolutionStats UpdateReflectionResolution(const UnitCell &cell, std::vector<IntegrationOutcome> &reflections);
|