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

randoms from singles fixes #1331

Merged
merged 6 commits into from
Jan 14, 2024
Merged

Conversation

KrisThielemans
Copy link
Collaborator

Fix RFS for TOF. Scale is currently wrong.

But first fixes #1330

The name and location is hopefully more logical.

Throw error if it is unknown.

To enable this, set max_num_timing_poss=1 for non-TOF scanners (it was 0
for most).

Add coincidence-window tests to Scanner:check_consistency

Moved the "TOF_time <-> mm" functions to TOF_conversions.h

Fixes UCL#1330
- get_all_det_pos_pairs_for_bin now defaults to ignore TOF. This is
probably what is expected by most people.
- fix multiply_crystal_factors for TOF (in the previous version, it
was unexpectedly running over all unmashed TOF bins, giving the wrong
scale factor, and taking a long time
@KrisThielemans
Copy link
Collaborator Author

@NicoleJurjew @danieldeidda @NikEfth this contains some changes that are not backwards compatible with previous TOF stuff. You might get compilation errors, but I hope the change is obvious enough.

@KrisThielemans KrisThielemans merged commit a170529 into UCL:master Jan 14, 2024
1 check passed
@KrisThielemans KrisThielemans deleted the RFSfixes branch January 14, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Move get_coincidence_window_in_pico_sec() from ProjDataInfo to Scanner
1 participant