Skip to content

BF: Create tof data from arrival bins when bin ranges in header wrong#19

Merged
trappitsch merged 2 commits into
mainfrom
bf_fall_back_tof_creation
Mar 5, 2022
Merged

BF: Create tof data from arrival bins when bin ranges in header wrong#19
trappitsch merged 2 commits into
mainfrom
bf_fall_back_tof_creation

Conversation

@trappitsch

Copy link
Copy Markdown
Contributor

Previous CRD files created by LIONEval have bad header data, i.e., the bin ranges are incorrect. In that case, the program recreated the whole tof data by just assuming that the first ion that hit is at zero ToF. Now we are correcting this by offsetting with the first ion arrival bin's time of flight.

This fixes a bug that made the ToF spectra of old files be misaligned, i.e., the absolute tof depended on the arrival time of the first ion, which is not generally the same from measurement to measurement.

@trappitsch trappitsch merged commit 5b4b812 into main Mar 5, 2022
@trappitsch trappitsch deleted the bf_fall_back_tof_creation branch March 5, 2022 19:53
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.

1 participant