// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include "../../common/DetectorModules.h" #include "BraggStencil.h" // Panel `panel` of the module table, for a point at (x, y) of the image (width x height): its plane // position, the panel's pixel axes on the plane and its box in the image (BraggPanel). With an empty // table the image is one flat panel, the plane the image itself. Panel -1 of a table that has panels - // a point in no panel's box - is a panel with no pixels. BraggPanel MakeBraggPanel(const DetectorModules &modules, int64_t panel, int64_t width, int64_t height, float x, float y);