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() override;
|
|
bool IsModularDetector() const override;
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_DETECTORGEOMETRYFIXED_H
|