From c1d9724eca0862918f31f0bca4ad95cb5a829c7f Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 27 Jul 2026 10:45:15 +0200 Subject: [PATCH] added Jungfrau definitions --- include/aare/defs.hpp | 5 +++++ python/src/bind_Defs.hpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/include/aare/defs.hpp b/include/aare/defs.hpp index af73a84..c41b08f 100644 --- a/include/aare/defs.hpp +++ b/include/aare/defs.hpp @@ -230,6 +230,11 @@ struct Moench05 { constexpr static std::array adcNumbers = {5, 9, 1}; }; +struct Jungfrau { + constexpr static size_t nRows = 512; + constexpr static size_t nCols = 1024; +}; + enum ReadoutMode : uint8_t { ANALOG_ONLY = 0, DIGITAL_ONLY = 1, diff --git a/python/src/bind_Defs.hpp b/python/src/bind_Defs.hpp index f091788..84a15cf 100644 --- a/python/src/bind_Defs.hpp +++ b/python/src/bind_Defs.hpp @@ -27,4 +27,8 @@ void define_defs_bindings(py::module &m) { moench05.attr("nRows") = Moench05::nRows; moench05.attr("nCols") = Moench05::nCols; moench05.attr("adcNumbers") = Moench05::adcNumbers; + + auto jungfrau = py::class_(m, "Jungfrau"); + jungfrau.attr("nRows") = Jungfrau::nRows; + jungfrau.attr("nCols") = Jungfrau::nCols; }