-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-write FormatXTCJungfrau to use homogenous coordinates (LCLS Jungfr…
…au only) Old code used psana's get_pixel_coords to read an array of pixel coordinates in lab space, then np.mean to find the centers of the objects. This version uses the vectors in the psana calib file directly. This change also fixes a bug where the parent frame was applied twice at the asic level. Not noticable in our 1M experiments, but the more complicated 4M showed the bug. This new version uses PSCalib.SegGeometryStore to look up the ASIC layout and gaps in the ASIC frame of reference instead of using the GeoAccess layout, which is in the module frame of reference. Also rename quad to module as the 1M and 4M at LCLS do not have quadrants in their calib files.
- Loading branch information
Showing
1 changed file
with
44 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters