Skip to content

Merge #5 (pixel sub-tick timing) with the TESTS.md conflict resolved - #11

Merged
OmarAlterkait merged 2 commits into
mainfrom
merge/pr-5
Nov 23, 2026
Merged

OmarAlterkait merged 2 commits into
mainfrom
merge/pr-5

Conversation

@OmarAlterkait

Copy link
Copy Markdown
Collaborator

Contains @pgranger23's commit from #5 unchanged plus a merge commit that keeps both rows in tests/TESTS.md, which conflicts now that #3 and #4 are in. Merging this marks #5 as merged.

pgranger23 and others added 2 commits November 19, 2026 23:07
interpolate_pixel_response_kernel delays the fine (NPZ-resolution) trace
by the sub-bin fraction, then applied jnp.roll(-t_sub_bin), which moves it
EARLIER by the whole-bin part of the offset. With rebin_factor > 1 (any
tick coarser than the 0.1 us NPZ bin, e.g. the default 0.5 us) the signal
time is a sawtooth in the deposit's arrival time: 0.85 us peak-to-peak on
the ND-LAr preset. rebin_factor = 1 (0.1 us tick) is unaffected.

- Delay by +t_sub_bin with zero fill (no wrap-around of the tail).
- Align the rebin groups with the simulation ticks: prepend
  (1 - time_zero_bin_npz) % rebin_factor zero time bins so that the
  arrival bin minus one is a multiple of rebin_factor. Without this the
  arrival lands ((time_zero_bin_npz - 1) % rebin_factor) NPZ bins late
  (0.4 us for the shipped response at 0.5 us).

The placed kernel output now equals the tick average of the response
arriving at the true time. kernel_time grows by one tick when padding is
needed (69 -> 70 for the shipped response at 0.5 us).

tests: test_pixel_kernel_timing.py (exact comparison with the delayed
response at rebin 1 and 5, centroid linearity, d/d(arrival) continuity
and finite differences across tick and NPZ-bin boundaries).
fix: pixel kernel sub-tick timing (tests/TESTS.md conflict resolved: both rows kept)

# Conflicts:
#	tests/TESTS.md
@OmarAlterkait
OmarAlterkait merged commit cbb6068 into main Nov 23, 2026
6 checks passed
@OmarAlterkait
OmarAlterkait deleted the merge/pr-5 branch November 24, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants