diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index dde0460c329d0bafa2675d37096c038d6aaf903a..e35a5881b4cf11a148c05972b77fc9fa240630aa 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -15,7 +15,7 @@ try: except ImportError: ARGCOMPLETEENABLED=False -POSSIBLEINPUTFILES = (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc") +POSSIBLEINPUTFILES = (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc", ".pairs") def outputLevel( level ): """return INT for outputlevel""" @@ -362,6 +362,9 @@ class DD4hepSimulation(object): elif inputFile.endswith(".hepmc"): gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/hepmc%d" % index) gen.Input="Geant4EventReaderHepMC|"+inputFile + elif inputFile.endswith(".pairs"): + gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/HEPEvt%d" % index) + gen.Input="Geant4EventReaderGuineaPig|"+inputFile else: ##this should never happen because we already check at the top, but in case of some LogicError... raise RuntimeError( "Unknown input file type: %s" % inputFile )