Fix const correctness in codes related to HepMC (small MR)
Fix const correctness in codes related to HepMC. The changes will reduce the number of warnings in the nightlies by ~10.
Edited by Andrii Verbytskyi
Fix const correctness in codes related to HepMC. The changes will reduce the number of warnings in the nightlies by ~10.