In this MR:
Tip for the reviewers: all no code is removed and all the added codes are behind #ifdef HEPMC3.