precompute track eta and phi outside of the loop