Example of generating events with Pythia using HepMC