From 2af7685484bee3bc16892bcd4a67ce412cc9d40c Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 12 Nov 2015 15:11:50 +0000
Subject: [PATCH] DDSim: FIX when inputFile is a string in the steering file

---
 DDSim/DD4hepSimulation.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index ee9eb3e6f..2998a585b 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -169,7 +169,7 @@ class DD4hepSimulation(object):
 
     self.compactFile = parsed.compactFile
     self.inputFiles = parsed.inputFiles
-    self.__checkFileFormat( self.inputFiles, (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc"))
+    self.inputFiles = self.__checkFileFormat( self.inputFiles, (".stdhep", ".slcio", ".HEPEvt", ".hepevt", ".hepmc"))
     self.outputFile = parsed.outputFile
     self.__checkFileFormat( self.outputFile, ('.root', '.slcio'))
     self.runType = parsed.runType
@@ -475,7 +475,7 @@ class DD4hepSimulation(object):
       fileNames = [fileNames]
     if not all( fileName.endswith( extensions ) for fileName in fileNames ):
       self.errorMessages.append("ERROR: Unknown fileformat for file: %s" % fileNames)
-    return
+    return fileNames
 
   def __applyBoostOrSmear( self, kernel, actionList, mask ):
     """apply boost or smearing for given mask index"""
-- 
GitLab