Skip to content
Snippets Groups Projects
Commit a5fc6430 authored by luisaleperez's avatar luisaleperez Committed by Andre Sailer
Browse files

Adding new guinea-pig event plugin

parent a64f088e
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ try: ...@@ -15,7 +15,7 @@ try:
except ImportError: except ImportError:
ARGCOMPLETEENABLED=False ARGCOMPLETEENABLED=False
POSSIBLEINPUTFILES = (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc") POSSIBLEINPUTFILES = (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc", ".pairs")
def outputLevel( level ): def outputLevel( level ):
"""return INT for outputlevel""" """return INT for outputlevel"""
...@@ -362,6 +362,9 @@ class DD4hepSimulation(object): ...@@ -362,6 +362,9 @@ class DD4hepSimulation(object):
elif inputFile.endswith(".hepmc"): elif inputFile.endswith(".hepmc"):
gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/hepmc%d" % index) gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/hepmc%d" % index)
gen.Input="Geant4EventReaderHepMC|"+inputFile gen.Input="Geant4EventReaderHepMC|"+inputFile
elif inputFile.endswith(".pairs"):
gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/HEPEvt%d" % index)
gen.Input="Geant4EventReaderGuineaPig|"+inputFile
else: else:
##this should never happen because we already check at the top, but in case of some LogicError... ##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 ) raise RuntimeError( "Unknown input file type: %s" % inputFile )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment