GeneratorFilters: Fix compilation in dev4.

Merged Scott Snyder requested to merge ssnyder/athena:dev4.GeneratorFilters-20230520 into master

HepMC3 interface change. Also fix a compilation error with HepMC2.

Merge request reports