Use more free functions in the HepMC namespace instead of the HepMC2 specific
Adding @ewelina and @jchapman .