Repository navigation
Merge #5 (pixel sub-tick timing) with the TESTS.md conflict resolved - #11
Merged
Merged
Conversation
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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.