// Copyright (2019-2023) Paul Scherrer Institute #ifndef JUNGFRAUJOCH_DETECTORGEOMETRY_H #define JUNGFRAUJOCH_DETECTORGEOMETRY_H #include #include #include #include "DetectorModuleGeometry.h" class DetectorGeometry { int64_t width; int64_t height; std::vector modules; int64_t GetDirectionStep(DetectorModuleGeometry::Direction direction) const; public: DetectorGeometry(const std::vector &pixel_0); DetectorGeometry(int32_t nmodules, int32_t horizontal_stacking = 1, int32_t gap_x = 0, int32_t gap_y = 0, bool mirror_y = true); // regular geometry operator JFJochProtoBuf::DetectorGeometry() const; int64_t GetModulesNum() const; }; #endif //JUNGFRAUJOCH_DETECTORGEOMETRY_H