Files
Jungfraujoch/common/DetectorGeometry.h
Filip Leonarski 33aeb64e4c
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m51s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m19s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m46s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m32s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 8m6s
Build Packages / build:rpm (rocky8) (push) Successful in 8m7s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m37s
Build Packages / Generate python client (push) Successful in 17s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 32s
Build Packages / build:rpm (rocky9) (push) Successful in 9m6s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m53s
Build Packages / Unit tests (push) Successful in 1h9m39s
v1.0.0-rc.103 (#8)
This is an UNSTABLE release.

* jfjoch_viewer: Minor improvements to the viewer
* jfjoch_broker: Change behavior for modular detectors: coordinates of 0-th pixel can be now arbitrary and detector will be cropped to the smallest rectangle limited by module coordinates

Reviewed-on: #8
Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
2025-11-19 09:40:50 +01:00

28 lines
1.2 KiB
C++

// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JUNGFRAUJOCH_DETECTORGEOMETRY_H
#define JUNGFRAUJOCH_DETECTORGEOMETRY_H
#include <cstdint>
#include <vector>
#include "Coord.h"
#include "DetectorModuleGeometry.h"
class DetectorGeometry {
public:
[[nodiscard]] virtual int64_t GetModulesNum() const = 0;
[[nodiscard]] virtual int64_t GetWidth(bool geom_transformed) const = 0;
[[nodiscard]] virtual int64_t GetHeight(bool geom_transformed) const = 0;
[[nodiscard]] virtual int64_t GetPixel0(int64_t module_number, bool geom_transformed) const = 0;
[[nodiscard]] virtual int64_t GetX0(int64_t module_number) const = 0;
[[nodiscard]] virtual int64_t GetY0(int64_t module_number) const = 0;
[[nodiscard]] virtual int64_t GetFastDirectionStep(int64_t module_number) const = 0;
[[nodiscard]] virtual int64_t GetSlowDirectionStep(int64_t module_number) const = 0;
[[nodiscard]] virtual Coord GetFastDirection(int64_t module_number) const = 0;
[[nodiscard]] virtual Coord GetSlowDirection(int64_t module_number) const = 0;
[[nodiscard]] virtual bool IsModularDetector() const = 0;
};
#endif //JUNGFRAUJOCH_DETECTORGEOMETRY_H