Skip to content

Fix issue with the RfFitterDriver crashing if the RF pulse is absent.#1165

Open
mholtrop wants to merge 3 commits intomasterfrom
iss_1164_rf_fitter
Open

Fix issue with the RfFitterDriver crashing if the RF pulse is absent.#1165
mholtrop wants to merge 3 commits intomasterfrom
iss_1164_rf_fitter

Conversation

@mholtrop
Copy link
Collaborator

@mholtrop mholtrop commented Mar 9, 2026

The code should not crash if the RF pulse is not detected. We have some early runs in 2021 where the RF pulse was not plugged in, so the data is garbage. We should still be able to analyze such data without needing to change the steering file.

The fix is simple, make a common sense guard against buffer over run (if you access i+1 do not loop to size()), and test if a peak was actually found before using the results.

@mholtrop mholtrop self-assigned this Mar 9, 2026
@mholtrop mholtrop added the bug label Mar 9, 2026
@mholtrop
Copy link
Collaborator Author

mholtrop commented Mar 9, 2026

Note I also remove two comments that were left in ThreeBodySkimmer.java and FEESkimmer.java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants