Skip to content
Snippets Groups Projects
Commit 937676ed authored by James Robinson's avatar James Robinson
Browse files

Reverted inclusion of Powheg #pdf lines as Pythia version is not yet new...

Reverted inclusion of Powheg #pdf lines as Pythia version is not yet new enough. 2017-12-15 09:22:14. (PowhegControl-00-03-07)


Former-commit-id: 9bf35e358a7760660ff86fe519930697fc9a76c0
parent 8528ab63
No related branches found
No related tags found
No related merge requests found
......@@ -123,14 +123,14 @@ def reweighter(process, weight_groups, powheg_LHE_output):
shutil.move(powheg_LHE_output.replace(".lhe", "-rwgt.lhe"), powheg_LHE_output)
# Remove rwgt and pdf lines, which crash Pythia
# FileParser(powheg_LHE_output).text_remove("^#pdf")
# FileParser(powheg_LHE_output).text_remove("^#rwgt")
# FileParser(powheg_LHE_output).text_remove("^#new weight")
# Strip NaN values from rwgt and pdf lines, which crash Pythia
FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#pdf")
FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#rwgt")
FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#new weight")
FileParser(powheg_LHE_output).text_remove("^#pdf")
FileParser(powheg_LHE_output).text_remove("^#rwgt")
FileParser(powheg_LHE_output).text_remove("^#new weight")
# # Strip NaN values from rwgt and pdf lines, which crash Pythia (even versions which accept the comment lines)
# FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#pdf")
# FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#rwgt")
# FileParser(powheg_LHE_output).text_replace("NaN", "0", regex_line_match="^#new weight")
# Rename all weights
for weight in weight_list:
......
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