scikit-hep / pyhepmc

Easy-to-use Python bindings for HepMC3
https://scikit-hep.org/pyhepmc/
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

Support reuse of GenEvent in to_hepmc3 interface #49

Closed HDembinski closed 2 years ago

HDembinski commented 2 years ago

The optional to_hepmc3 interface can be added to foreign event objects to support writing them as Hepmc files. This adds support for reuse of an existing GenEvent that was already converted. Clients can use this to add a GenRunInfo only once to the first event, which contains info that does not change during the run.