ATLAS Offline Software
|
Configuration class for showering LHE files from MG5_aMC@NLO or PowhegBox. More...
Public Member Functions | |
def | __init__ (self, genSeq, runArgs, run_name="Herwig", beams="pp") |
def | local_pre_commands (self) |
def | local_post_commands (self) |
def | run (self) |
High-level function for triggering the process setup and the event generation. More... | |
def | lhef_mg5amc_commands (self, lhe_filename="events.lhe", me_pdf_order="NLO", usespin=True) |
Commands specific to showering of events produced with MG5_aMC@NLO. More... | |
def | lhef_powhegbox_commands (self, lhe_filename="events.lhe", me_pdf_order="NLO", usespin=True, usepwhglhereader=False, pwg_reader="powheg", pwg_reader_lib="libpowhegHerwig.so") |
Commands specific to showering of events produced with PowhegBox. More... | |
Public Attributes | |
beams | |
provide variables initialized by the parent class More... | |
set_lhef_mg5amc_commands | |
set_lhef_powhegbox_commands | |
Private Member Functions | |
def | __lhef_commands (self, lhe_filename="events.lhe", me_pdf_order="NLO", usespin=True, usepwghlhereader=False, pwg_reader="powheg", pwg_reader_lib="libpowhegHerwig.so") |
Sets up reading of events from an LHE file. More... | |
Configuration class for showering LHE files from MG5_aMC@NLO or PowhegBox.
Example JobOptions are available in examples/LHEF
and tests/athenaLHEF/jobOptions
.
The LHE files have to follow a specific naming scheme which is detailed here. The name of the LHE file is added as the command line parameter --inputGeneratorFile
to the Generate_tf.py
command and can be accessed using the variable runArgs.inputGeneratorFile
in the JobOptions where they can be passed to the functions lhef_mg5amc_commands or lhef_powhegbox_commands in order to communicate the LHE file names to Herwig7, e.g.
or
To trigger the actual running of Herwig7 in Athena please end the JobOptions with
More specifically, the run()
function triggers the creation of the Herwig7 input file and the preparation of the run (i.e. the Herwig read
step). This means, that no Herwig7 settings should be modified after calling the run()
function because the changed settings would not be applied during the event generation.
Definition at line 58 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.__init__ | ( | self, | |
genSeq, | |||
runArgs, | |||
run_name = "Herwig" , |
|||
beams = "pp" |
|||
) |
Definition at line 61 of file Herwig72ConfigLHEF.py.
|
private |
Sets up reading of events from an LHE file.
usespin | Use the spin of tau leptons from the LHE file (spins of other particles are ignored anyways) |
usepwghlhereader | Uses a different LHE reader, which is able to propagte multiple event weights |
Definition at line 134 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.lhef_mg5amc_commands | ( | self, | |
lhe_filename = "events.lhe" , |
|||
me_pdf_order = "NLO" , |
|||
usespin = True |
|||
) |
Commands specific to showering of events produced with MG5_aMC@NLO.
[in] | lhe_filename | name of the LHE file that is to be showered |
[in] | me_pdf_order | order (either LO or NLO ) of the matrix element PDF. This has to be consistent with the PDF used in the hard process generation and the PDF set with generator.me_pdf_commands. |
The reason for these specific settings is that for MC@NLO-like matching schemes the subtraction of the parton shower contribution in the hard process and the parton shower settings have to be consistent in order to recover the correct terms at the NLO.
For showering of previously existing LHE files
generator.lhef_powhegbox_commands(lhe_filename=runArgs.inputGeneratorFile)
will work.
Definition at line 231 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.lhef_powhegbox_commands | ( | self, | |
lhe_filename = "events.lhe" , |
|||
me_pdf_order = "NLO" , |
|||
usespin = True , |
|||
usepwhglhereader = False , |
|||
pwg_reader = "powheg" , |
|||
pwg_reader_lib = "libpowhegHerwig.so" |
|||
) |
Commands specific to showering of events produced with PowhegBox.
[in] | lhe_filename | name of the LHE file that is to be showered |
[in] | me_pdf_order | order (either LO or NLO ) of the matrix element PDF. This has to be consistent with the PDF used in the hard process generation and the PDF set with generator.me_pdf_commands. |
[in] | usespin | |
[in] | usepwghlhereader |
Specifying the LHE file name with
generator.lhef_powhegbox_commands(lhe_filename=runArgs.inputGeneratorFile)
should work both for showering existing LHE files as well as for on-the-fly (OTF) running of PowhegBox and Herwig7.
Since for OTF running the LHE file generated by PowhegBox is usually called PowhegOTF._1.events
using
generator.lhef_powhegbox_commands(lhe_filename="PowhegOTF._1.events")
will normally also work in this case. If a different name for the LHE file generated by PowhegBox is specified with the --outputTXTFile
argument to Generate_tf.py
then PowhegControl
will update the value of runArgs.inputGeneratorFile
accordingly and
generator.lhef_powhegbox_commands(lhe_filename=runArgs.inputGeneratorFile)
should still work.
If you want to use the pwglhereader, needed to propagte multiple event weights you need to use a gridpack that contains the powhegHerwig.so
Definition at line 286 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.local_post_commands | ( | self | ) |
Definition at line 87 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.local_pre_commands | ( | self | ) |
Definition at line 76 of file Herwig72ConfigLHEF.py.
def Herwig72ConfigLHEF.Hw7ConfigLHEF.run | ( | self | ) |
High-level function for triggering the process setup and the event generation.
run()
function as the modified settings would not be applied in the event generation Definition at line 104 of file Herwig72ConfigLHEF.py.
Herwig72ConfigLHEF.Hw7ConfigLHEF.beams |
provide variables initialized by the parent class
Definition at line 70 of file Herwig72ConfigLHEF.py.
Herwig72ConfigLHEF.Hw7ConfigLHEF.set_lhef_mg5amc_commands |
Definition at line 72 of file Herwig72ConfigLHEF.py.
Herwig72ConfigLHEF.Hw7ConfigLHEF.set_lhef_powhegbox_commands |
Definition at line 73 of file Herwig72ConfigLHEF.py.