Files
Jungfraujoch/image_analysis/UpdateReflectionResolution.h
T
leonarski_f 1a70c1987a
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 15m15s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 16m33s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 16m49s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 16m45s
Build Packages / build:rpm (rocky8) (push) Successful in 17m50s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 18m12s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m45s
Build Packages / build:rpm (rocky9) (push) Successful in 12m6s
Build Packages / Generate python client (push) Successful in 32s
Build Packages / Build documentation (push) Successful in 56s
Build Packages / Create release (push) Skipped
Build Packages / XDS test (neggia plugin) (push) Successful in 11m6s
Build Packages / XDS test (durin plugin) (push) Successful in 11m59s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 12m1s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m48s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 13m52s
Build Packages / DIALS test (push) Successful in 15m48s
Build Packages / Unit tests (push) Successful in 1h2m34s
jfjoch_scale: A bit nicer handling of reflection statistics and preparation
2026-05-18 21:28:09 +02:00

19 lines
589 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"
struct ResolutionStats {
float d_low = std::numeric_limits<float>::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<std::vector<Reflection> > &reflections);