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

Compute time at sample #489

Closed
SimonHeybrock opened this issue Jan 30, 2024 · 6 comments · Fixed by #491
Closed

Compute time at sample #489

SimonHeybrock opened this issue Jan 30, 2024 · 6 comments · Fixed by #491
Assignees

Comments

@SimonHeybrock
Copy link
Member

This is required for event data filtering for fast sample environment parameters, e.g., in ESSsans.

Should this be added to the regular coord transform graphs that ScippNeutron provides?

@jokasimr
Copy link
Contributor

jokasimr commented Jan 30, 2024

Is the time at the sample $t_s = L_1/v$ where $v = (L_1 + L_2) / t_{d}$ where $t_d$ is the time of flight?

@SimonHeybrock
Copy link
Member Author

SimonHeybrock commented Jan 30, 2024

Almost, this is about the absolute time at the sample, so $t_0 + t_s$ in your notation. It is probably easiest to calculate backwards from the detector position (i.e., we do not require $L_1$).

@jokasimr
Copy link
Contributor

jokasimr commented Jan 30, 2024

Okay I see, so we should compute the absolute time like $t_{abs,\ s} = t_0 + t_s = t_0 + t_d - L_2 / v$?

@SimonHeybrock
Copy link
Member Author

Okay I see, so we should compute the absolute time like tabs, s=t0+ts=t0+td−L2/v?

Yes, and we might go via wavelength, since $v$ is generally not required, but wavelength is computed in many cases already.

@jokasimr
Copy link
Contributor

Where do we get $t_0$ (the time when the neutron passes the point where L=0)?

@SimonHeybrock
Copy link
Member Author

We must assume we have it, it is generally called pulse_time in our workflows, though that is subject to change.

@jokasimr jokasimr self-assigned this Jan 30, 2024
@jokasimr jokasimr moved this from Next to In progress in Development Board Jan 30, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Development Board Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants