-
Notifications
You must be signed in to change notification settings - Fork 95
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
better indices for projection data #1263
Comments
I like this idea. The looping fixes a lot of issues that will come with added projection data dimensionality. Question: do this before or after #304 is merged? |
the billion dollar question... I'd like to do it before, but I don't really want to delay #304 either. If we do it before the merge on Possibly a half-way house could work ok: do an (nearly) automatic "search and replace loop" on both branches, then merge. Not sure... |
My perferance would be merge the TOF branch and improve indexing after. Better indexing isn't just a TOF problem. |
We need a more future-proof way to specify indices in projection data, e.g.
as opposed to what we have now
(the
make_num_tangential_poss_odd
is long obsolete, but was unfortunately preserved on the TOF PR #304 so it's harder to remove now).Having this will mean less code changes in the future once we add energy indices, layers etc.
NikEfth#17 started this on the TOF branch, but was somewhat ambitious and got overtaken by other things.
One possible way to do this would be
Sadly, C++ has no "named parameters", so we shift some of the burden to constructing the relevant object, and having constructor arguments in the correct order. However, it would at least prevent loops being specific.
As noted in NikEfth#17, loops could then be simplified by having something like this
Anyone any suggestions for improvements?
The text was updated successfully, but these errors were encountered: