Skip to content
Snippets Groups Projects
Commit 99ab9d9e authored by Andre Sailer's avatar Andre Sailer
Browse files

DDSim: add raising exception just in case we let an unknown input file trough again

parent 2af76854
No related branches found
No related tags found
No related merge requests found
...@@ -316,6 +316,9 @@ class DD4hepSimulation(object): ...@@ -316,6 +316,9 @@ class DD4hepSimulation(object):
elif inputFile.endswith(".hepmc"): elif inputFile.endswith(".hepmc"):
gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/hepmc1") gen = DDG4.GeneratorAction(kernel,"Geant4InputAction/hepmc1")
gen.Input="Geant4EventReaderHepMC|"+inputFile gen.Input="Geant4EventReaderHepMC|"+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 )
gen.Sync = self.skipNEvents gen.Sync = self.skipNEvents
gen.Mask = index gen.Mask = index
actionList.append(gen) actionList.append(gen)
......
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