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

ReadEDM4hep: comment the order of file extension checks for input readers

parent c2761e2e
No related branches found
No related tags found
No related merge requests found
...@@ -452,6 +452,7 @@ class DD4hepSimulation(object): ...@@ -452,6 +452,7 @@ class DD4hepSimulation(object):
gen.Input = "Geant4EventReaderGuineaPig|" + inputFile gen.Input = "Geant4EventReaderGuineaPig|" + inputFile
gen.Parameters = self.guineapig.getParameters() gen.Parameters = self.guineapig.getParameters()
elif inputFile.endswith(tuple(EDM4HEP_INPUT_EXTENSIONS)): elif inputFile.endswith(tuple(EDM4HEP_INPUT_EXTENSIONS)):
# EDM4HEP must come after HEPMC3 because of .root also part of hepmc3 extensions
gen = DDG4.GeneratorAction(kernel, "Geant4InputAction/EDM4hep%d" % index) gen = DDG4.GeneratorAction(kernel, "Geant4InputAction/EDM4hep%d" % index)
gen.Input = "EDM4hepFileReader|" + inputFile gen.Input = "EDM4hepFileReader|" + inputFile
else: else:
......
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