Further optimization of HepMC-related codes

Merged Andrii Verbytskyi requested to merge averbyts/athena:hepmc_optimization_31 into master

In this MR:

  • use access by reference where possible.
  • reduce the usage of HepMCParticleLink-> operator using HepMCParticleLink.cptr()

Merge request reports