2 include(
"EvgenProdTools/merge_lhe_files.py")
3 include(
"EvgenProdTools/find_unique_file.py")
5 myInputFiles = runArgs.inputGeneratorFile
6 genInputFiles = myInputFiles.split(
',')
7 numberOfFiles = len(genInputFiles)
11 for file
in genInputFiles:
12 print (
"input file name ",file)
15 if ".tar" in os.path.basename(file):
16 inputroot = os.path.basename(file).
split(
".tar.")[0]
18 input0 = os.path.basename(file).
split(
"._")[0]
19 input1 = (os.path.basename(file).
split(
"._")[1]).
split(
".")[0]
20 inputroot = input0+
"._"+input1
24 with open(realEventsFile,
'r')
as f:
25 first_line = f.readline()
26 if(
not (
"LesHouche" in first_line)):
27 raise RuntimeError(
"%s is NOT a LesHouche file" % realEventsFile)
28 allFiles.append(realEventsFile)
30 print ((
"Found more than one LHE file: {}".
format(numberOfFiles)))
34 my_lhe_file =
"merged_lhef._0.events"
36 print ((
"Using uncompressed LHE file '{}' as inputGeneratorFile".
format(my_lhe_file)))
37 runArgs.inputGeneratorFile = my_lhe_file