eic / eic-smear

fast simulation tool originally developed by the BNL EIC task force
GNU General Public License v3.0
2 stars 11 forks source link

read hepmc2 and hepmc3 formatted files #5

Closed pinkenburg closed 4 years ago

pinkenburg commented 4 years ago

This PR adds the capability to read also HepMC3 formatted files. The change was straightforward where the reading was concerned, extracting the version and propagating this information to the reading was a bit more tricky. I hijacked the FindFirstEvent() method for this which is called before the processing. It reads now the first line, extracts the version and sets a flag which is later used to instantiate the specific reader.