// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include #include "../../common/DiffractionGeometry.h" #include "../../image_analysis/geom_refinement/PowderCalibration.h" // CalibrationResult // Pop-up result window for a finished whole-dataset detector calibration: the headline numbers that // say whether the fit can be believed (radial rms, ring points, beam-centre sigma) above a table of // every fitted quantity next to the header value it replaces. Opened automatically when a calibration // job finishes and on demand from the processing-jobs dock. Modeless; deletes on close. // // The rms is the number to read, not the sigma: the sigma is what the scatter implies about the beam // centre and shrinks with the number of ring points, so a fit with thousands of badly-scattered points // reports a small sigma while sitting a couple of pixels off every ring. The rms says that outright. class JFJochCalibrationResultWindow : public QWidget { Q_OBJECT public: JFJochCalibrationResultWindow(const QString &title, const CalibrationResult &calibration, const DiffractionGeometry &header, const QString &poni_path, QWidget *parent = nullptr); };