Skip to content

Add offset to noise sampling#370

Merged
cfuselli merged 1 commit into
mainfrom
fix_noise_offset
Jan 29, 2026
Merged

Add offset to noise sampling#370
cfuselli merged 1 commit into
mainfrom
fix_noise_offset

Conversation

@mhliu0001

Copy link
Copy Markdown
Contributor

Add random noise_offset to break the correlation between pulse time and noise pattern. The offset is randomly sampled from [0, noise_len) for each chunk, preventing systematic biases in the S1 area when using fixed event spacing.

Should solve issue #367.

@mhliu0001 mhliu0001 requested a review from cfuselli January 28, 2026 23:19
@coveralls

coveralls commented Jan 28, 2026

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21459198336

Details

  • 4 of 5 (80.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 72.484%

Changes Missing Coverage Covered Lines Changed/Added Lines %
fuse/plugins/pmt_and_daq/pmt_response_and_daq.py 4 5 80.0%
Totals Coverage Status
Change from base Build 21403702837: 0.02%
Covered Lines: 2658
Relevant Lines: 3667

💛 - Coveralls

@cfuselli

Copy link
Copy Markdown
Member

I think that this per chunk offset is the best solution we can find. Thanks!

@cfuselli cfuselli merged commit 28ccef1 into main Jan 29, 2026
6 checks passed
@cfuselli cfuselli deleted the fix_noise_offset branch January 29, 2026 08:22
cfuselli pushed a commit that referenced this pull request Jan 29, 2026
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.

3 participants