Sweeping !12239 from 21.0 to master. Avoid copying elements when performing loops in tau EDM See merge request atlas/athena!12332 Former-commit-id: bb92a277