Prepare for reweighting by enabling the runcard option.
- Author
- James Robinson james.nosp@m..rob.nosp@m.inson.nosp@m.@cer.nosp@m.n.ch
Definition at line 9 of file preprocessors/reweighter.py.
10 """! Prepare for reweighting by enabling the runcard option.
12 @author James Robinson <james.robinson@cern.ch>
15 if process.use_XML_reweighting:
16 FileParser(
"powheg.input").text_remove(
"lhrwgt_descr")
17 FileParser(
"powheg.input").text_remove(
"lhrwgt_group_combine")
18 FileParser(
"powheg.input").text_remove(
"lhrwgt_group_name")
19 FileParser(
"powheg.input").text_remove(
"lhrwgt_id")
20 FileParser(
"powheg.input").text_remove(
"storeinfo_rwgt")
22 FileParser(
"powheg.input").text_remove(
"rwl_add")
23 FileParser(
"powheg.input").text_remove(
"rwl_file")
24 FileParser(
"powheg.input").text_remove(
"rwl_format_rwgt")
25 FileParser(
"powheg.input").text_remove(
"rwl_group_events")
27 FileParser(
"powheg.input").text_replace(
"storeinfo_rwgt 0",
"storeinfo_rwgt 1")
30 shutil.copy(
"powheg.input",
"powheg_nominal.input")