// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include "../common/Reflection.h" #include "../common/UnitCell.h" struct ResolutionStats { float d_low = std::numeric_limits::max(); float d_high = 0.0f; int n_reflections = 0; int n_images = 0; }; // Returns the highest (best) resolution in Angstrom observed by reflection ResolutionStats UpdateReflectionResolution(const UnitCell &cell, std::vector > &reflections);