mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-30 14:57:48 +01:00
Refactor of PR #275, branching off dev/strixels/remap The structure has been simplified. Basic structure: - defs -> pure data structures (geometry, config structs, placement, remapping result) - config -> hardcoded sensor definitions (e.g. Jungfrau iLGAD multipitch, 25um pitch group, ...) - algo -> generic remapping algorithms - generate -> user-facing convenience functions (i.e. generate a map for Jungfrau iLGAD multipitch sensor 25um pitch group) So far, only a few basic sensor configurations are implemented. But in principle, it should be straight forward to implement a new one by 1. Adding geometry definitions in config 2. Adding generate function We could also discuss a further simplification making the sensor definitions types, i.e. instead of ``` auto map = jungfrau_ilgad_singlechip_25um_strixel_map(roi, sensor_placement); ``` we template on the sensor type ``` auto map = generate_maps<Jungfrau_iLGAD_MP25>(roi, sensor_placement); ``` Then adding a new sensor just requires a new type definition. --------- Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch> Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>