epic-drich-beam-test-analysis
ePIC dRICH beam test analysis framework
Loading...
Searching...
No Matches
mapping.h File Reference

Detector channel-to-position mapping for the ePIC dRICH beam test. More...

#include "utility.h"
#include "alcor_finedata.h"
#include <toml++/toml.h>

Go to the source code of this file.

Classes

class  mapping
 

Detailed Description

Detector channel-to-position mapping for the ePIC dRICH beam test.

Provides a full chain of lookups from raw ALCOR readout identifiers (device, chip, EO channel) to physical (x, y) hit coordinates on the SiPM plane, and exposes pre-built caches for performance-critical loops.

Coordinate chain

(device, chip) ──► (PDU, matrix) [loaded from calibration file]
EO channel ──► DO channel [static look-up table per matrix]
(DO channel, matrix) ──► (col, row) inside the PDU 16×16 grid
(PDU, col, row) ──► (x, y) mm [PDU origin + optional 180° rotation]
Todo:

Add a method to generate a full-coverage map (Cartesian and R-φ).

Profile cache benefit vs. on-the-fly computation.