-
Notifications
You must be signed in to change notification settings - Fork 2
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
Standardize aperture function API #21
Comments
What is |
No. This is a calculation of whether a particle has hit an aperture. This function will potentially be called for each lattice element during tracking. |
Ah, ok. One idea I have is that for elements that have an aperture specified, the low-level tracking lattice that we produce inserts an |
The case where there are apertures that are not at an element end are a special case which I don't think we need to worry about just now. |
Then I think, just as all misalignments would be patches at the lower-level, all apertures would be aperture elements placed after each element at the low-level. Then when you have a |
Yes this sounds reasonable but an API is still needed. |
Note: An element will have a |
Generally the different tracking methods will be using the same aperture function(s) so there needs to be a standardized API for this. Something like:
Another issue is in what package the
aperture
funciton should live. Putting it inBeamTracking.jl
would tie the aperture calculation to the element tracking which makes things less flexible.The text was updated successfully, but these errors were encountered: