ATLAS Offline Software
|
Functions | |
def | merge_lhe_files (listOfFiles, outputFile) |
Variables | |
bool | inHeader = False |
Reading first event signals that we are done with all the header information Using this approach means the script will properly handle any metadata stored at the beginning of the file. More... | |
holdHeader = header | |
tmp = line.split("=") | |
each input file ends with "</LesHouchesEvents>". More... | |
line = line.replace(tmp[0],str(nevents)) | |
nnn = str(nevents) | |
def merge_lhe_files.merge_lhe_files | ( | listOfFiles, | |
outputFile | |||
) |
Definition at line 4 of file merge_lhe_files.py.
merge_lhe_files.holdHeader = header |
Definition at line 28 of file merge_lhe_files.py.
bool merge_lhe_files.inHeader = False |
Reading first event signals that we are done with all the header information Using this approach means the script will properly handle any metadata stored at the beginning of the file.
Note: aside from the number of events, no metadata is updated after the first header is read (eg the random number seed recorded will be that of the first file.
Definition at line 26 of file merge_lhe_files.py.
merge_lhe_files.line = line.replace(tmp[0],str(nevents)) |
Definition at line 40 of file merge_lhe_files.py.
merge_lhe_files.nnn = str(nevents) |
Definition at line 44 of file merge_lhe_files.py.
merge_lhe_files.tmp = line.split("=") |
each input file ends with "</LesHouchesEvents>".
Powheg format is numevts n.
We don't want to write this out until all the files have been read. The elif below writes out all the events. Format for storing number of events different in MG and Powheg MG5 format is "n = nevents"
Definition at line 39 of file merge_lhe_files.py.