Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle bad ctof_tdcadc fits #223

Merged
merged 1 commit into from
Aug 15, 2024
Merged

fix: handle bad ctof_tdcadc fits #223

merged 1 commit into from
Aug 15, 2024

Conversation

c-dilks
Copy link
Member

@c-dilks c-dilks commented Aug 15, 2024

If the first peak fit is bad, it's possible that the 2nd peak finder will try to search for a peak in an empty dataset, since the 1st peak's sigma may be wider than the full histogram range. In this bad case, just equate the 1st and 2nd peak positions so we get 2 bad fits that are equivalent.

If the first peak fit is bad, it's possible that the 2nd peak finder
will try to search for a peak in an _empty_ dataset, since the 1st
peak's sigma may be wider than the full histogram range. In this bad
case, just equate the 1st and 2nd peak positions so we get 2 bad fits
that are equivalent.
@c-dilks c-dilks mentioned this pull request Aug 15, 2024
5 tasks
@c-dilks c-dilks merged commit 4f0ac7d into main Aug 15, 2024
11 checks passed
@c-dilks c-dilks deleted the fix-ctof-bad-fits branch August 15, 2024 23:47
@c-dilks c-dilks linked an issue Aug 19, 2024 that may be closed by this pull request
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

RG-A Spring18 issues
1 participant