detector_basis_vectors_lab#

anri.geom.detector_basis_vectors_lab(det_trans, beam_cen_shift, x_distance_shift)[source]#

Get the detector’s pixel steps and pixel (0, 0) position in the laboratory frame.

Needed for raytrace_to_det(). The steps are computed directly from the detector transform, not as differences of pixel positions: positions are ~distance away from the origin, so subtracting them loses precision in float32 (about 2e-4 relative for a 75 um pixel at 150 mm).

Parameters:
Returns:

  • s_step_lab (jax.Array) – [3] Lab-frame step of one pixel along the slow direction.

  • f_step_lab (jax.Array) – [3] Lab-frame step of one pixel along the fast direction.

  • det_origin_lab (jax.Array) – [3] Lab-frame position of pixel (0, 0).