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
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>
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_DETECTORGEOMETRYFIXED_H
|
|
#define JFJOCH_DETECTORGEOMETRYFIXED_H
|
|
|
|
#include "DetectorGeometry.h"
|
|
|
|
class DetectorGeometryFixed : public DetectorGeometry {
|
|
int64_t width;
|
|
int64_t height;
|
|
public:
|
|
DetectorGeometryFixed(int64_t width, int64_t height);
|
|
int64_t GetModulesNum() const override;
|
|
int64_t GetWidth(bool geom_transformed) const override;
|
|
int64_t GetHeight(bool geom_transformed) const override;
|
|
int64_t GetPixel0(int64_t module_number, bool geom_transformed) const override;
|
|
int64_t GetX0(int64_t module_number) const override;
|
|
int64_t GetY0(int64_t module_number) const override;
|
|
int64_t GetFastDirectionStep(int64_t module_number) const override;
|
|
int64_t GetSlowDirectionStep(int64_t module_number) const override;
|
|
Coord GetFastDirection(int64_t module_number) const override;
|
|
Coord GetSlowDirection(int64_t module_number) const override;
|
|
void VerticalFlip();
|
|
bool IsModularDetector() const override;
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_DETECTORGEOMETRYFIXED_H
|