ATLAS Offline Software
|
Base class for PowhegBox V2 processes. More...
Inherits python.processes.powheg_base.PowhegBase.
Inherited by python.processes.powheg.bb.bb, python.processes.powheg.bbH.bbH, python.processes.powheg.chi0chi0.chi0chi0, python.processes.powheg.chi0chi1.chi0chi1, python.processes.powheg.chi1chi1.chi1chi1, python.processes.powheg.DMGG.DMGG, python.processes.powheg.DMS_tloop.DMS_tloop, python.processes.powheg.DMV.DMV, python.processes.powheg.DY_SLQ.DY_SLQ, python.processes.powheg.DY_VLQ.DY_VLQ, python.processes.powheg.fourtops.fourtops, python.processes.powheg.ggF_H.ggF_H, python.processes.powheg.ggF_HH.ggF_HH, python.processes.powheg.ggF_HH_SMEFT.ggF_HH_SMEFT, python.processes.powheg.ggF_HZ.ggF_HZ, python.processes.powheg.Hj.Hj, python.processes.powheg.Hj_MiNNLO.Hj_MiNNLO, python.processes.powheg.Hjj.Hjj, python.processes.powheg.HWj.HWj, python.processes.powheg.HZj.HZj, python.processes.powheg.jj.jj, python.processes.powheg.jjj.jjj, python.processes.powheg.ssWWjj.ssWWjj, python.processes.powheg.t_sch.t_sch, python.processes.powheg.t_tch_4FS.t_tch_4FS, python.processes.powheg.tj.tj, python.processes.powheg.tt.tt, python.processes.powheg.tt_NLOdecays.tt_NLOdecays, python.processes.powheg.ttH.ttH, python.processes.powheg.ttj.ttj, python.processes.powheg.ttj_MiNNLO.ttj_MiNNLO, python.processes.powheg.ttWm_EW.ttWm_EW, python.processes.powheg.ttWm_QCD.ttWm_QCD, python.processes.powheg.ttWp_EW.ttWp_EW, python.processes.powheg.ttWp_QCD.ttWp_QCD, python.processes.powheg.VBF_H.VBF_H, python.processes.powheg.VBF_osWW.VBF_osWW, python.processes.powheg.VBF_ssWW.VBF_ssWW, python.processes.powheg.VBF_W.VBF_W, python.processes.powheg.VBF_Z.VBF_Z, python.processes.powheg.VBF_ZZ.VBF_ZZ, python.processes.powheg.W_EW.W_EW, python.processes.powheg.W_SMEFT.W_SMEFT, python.processes.powheg.Wbb.Wbb, python.processes.powheg.Wbbj.Wbbj, python.processes.powheg.Wj.Wj, python.processes.powheg.Wj_MiNNLO.Wj_MiNNLO, python.processes.powheg.Wjj.Wjj, python.processes.powheg.Wt_DR.Wt_DR, python.processes.powheg.Wt_DR_modified.Wt_DR_modified, python.processes.powheg.Wt_DS.Wt_DS, python.processes.powheg.WW.WW, python.processes.powheg.WWj.WWj, python.processes.powheg.Wy.Wy, python.processes.powheg.WZ.WZ, python.processes.powheg.yj.yj, python.processes.powheg.Z_EW.Z_EW, python.processes.powheg.Z_SMEFT.Z_SMEFT, python.processes.powheg.Zj.Zj, python.processes.powheg.Zj_MiNNLO.Zj_MiNNLO, python.processes.powheg.Zjj.Zjj, and python.processes.powheg.ZZ.ZZ.
Public Member Functions | |
def | __init__ (self, base_directory, executable_name, warning_output=[], info_output=[], error_output=[], **kwargs) |
Constructor. More... | |
def | default_PDFs (self) |
Default PDFs for this process. More... | |
def | default_scales (self) |
Default scale variations for this process. More... | |
def | files_for_cleanup (self) |
Wildcarded list of files created by this process that can be deleted. More... | |
def | integration_file_names (self) |
Wildcarded list of integration files that might be created by this process. More... | |
def | mandatory_integration_file_names (self) |
Wildcarded list of integration files that are needed for this process. More... | |
def | powheg_version (self) |
Version of PowhegBox process. More... | |
def | stage_is_completed (self, stage) |
Set whether the specified POWHEG-BOX generation stage is complete. More... | |
def | hoppet_info (self) |
def | hoppet_warning (self) |
def | openloops_error (self) |
def | manually_set_openloops_paths (self) |
def | manually_set_openloops_gnu_paths (self) |
def | link_madloop_libraries (self) |
def | link_external_powheg_libraries (self, librarypath) |
def | add_algorithm (self, alg_or_process) |
Add an algorithm or external process to the sequence. More... | |
def | prepare_to_parallelise (self, n_cores) |
Scale calculation parameters by n_cores. More... | |
def | validate_parameters (self) |
Validate any parameters which need it before preparing runcard. More... | |
def | validate_integration_parameters (self) |
Validate integration keywords by forcing to integer values. More... | |
def | check_decay_mode (self, decay_mode, allowed_decay_modes=None) |
Check whether a decay mode is allowed an raise an exception if it is not. More... | |
def | check_using_integration_files (self) |
def | modify_parameter (self, stage=0) |
def | set_parameter_in_config (self, key, value) |
def | add_keyword (self, keyword, value=None, name=None, frozen=None, hidden=None, description=None, **kwargs) |
Register configurable parameter that is exposed to the user. More... | |
def | expose (self) |
Add all names to the interface of this object. More... | |
def | has_keyword (self, keyword) |
def | has_parameter (self, parameter) |
def | parameters_by_keyword (self, keyword) |
Retrieve all parameters that use a given keyword. More... | |
def | parameters_by_name (self, name) |
Retrieve all parameters that use a given name. More... | |
Public Attributes | |
executable | |
Powheg executable that will be used. More... | |
process_revision | |
SVN revision of process code. More... | |
powhegbox_revision | |
Log the PowhegBox version and process-code revision for AMI etc. More... | |
cores | |
Number of cores to use. More... | |
algorithms | |
List of additional algorithms to schedule. More... | |
externals | |
List of external processes to schedule. More... | |
validation_functions | |
List of validation functions to run before preparing runcard. More... | |
is_reweightable | |
Switch to determine whether reweighting is allowed. More... | |
use_XML_reweighting | |
Switch to determine whether XML reweighting should be used. More... | |
remove_oldStyle_rwt_comments | |
Switch to determine if the #rwgt and #pdf comments should be kept in lhe files despite using xml reweighting. More... | |
warning_output | |
Special treatment for some log messages. More... | |
info_output | |
error_output | |
parameterStageDict | |
Dictionary used to change parameters of the Powheg input. More... | |
parameters | |
List of available parameters. More... | |
Base class for PowhegBox V2 processes.
All V2 processes inherit from this class.
Definition at line 6 of file powheg_V2.py.
def python.processes.powheg_V2.PowhegV2.__init__ | ( | self, | |
base_directory, | |||
executable_name, | |||
warning_output = [] , |
|||
info_output = [] , |
|||
error_output = [] , |
|||
** | kwargs | ||
) |
Constructor.
base_directory | path to PowhegBox code. |
executable_name | folder containing appropriate PowhegBox executable. |
is_LO | True if this is a leading-order process. |
warning_output | list of patterns which if found in the output will be treated as warning in the log. |
error_output | list of patterns which if found in the output will be treated as error in the log. |
info_output | list of patterns which if found in the output will be treated as info in the log. |
Definition at line 14 of file powheg_V2.py.
|
inherited |
Add an algorithm or external process to the sequence.
process | Algorithm or external process to add. |
Definition at line 206 of file powheg_base.py.
|
inherited |
Register configurable parameter that is exposed to the user.
keyword | Powheg keyword that gets written to the runcard. |
value | Value of the parameter. |
name | Configurable parameter name exposed to the user. |
hidden | True if this parameter should be hidden from the user. |
frozen | True if this parameter cannot be changed. |
description | Description for the run card. |
parameter | Name used in the run card if different. |
Definition at line 21 of file configurable.py.
|
inherited |
Check whether a decay mode is allowed an raise an exception if it is not.
Definition at line 281 of file powheg_base.py.
|
inherited |
Definition at line 292 of file powheg_base.py.
def python.processes.powheg_V2.PowhegV2.default_PDFs | ( | self | ) |
Default PDFs for this process.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 27 of file powheg_V2.py.
def python.processes.powheg_V2.PowhegV2.default_scales | ( | self | ) |
Default scale variations for this process.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 41 of file powheg_V2.py.
|
inherited |
def python.processes.powheg_V2.PowhegV2.files_for_cleanup | ( | self | ) |
Wildcarded list of files created by this process that can be deleted.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 47 of file powheg_V2.py.
|
inherited |
Definition at line 51 of file configurable.py.
|
inherited |
Definition at line 54 of file configurable.py.
|
inherited |
Returns a list of strings to be treated as info messages in the log They otherwise throw an error with HOPPET v. 1.2.0 Cf. AGENE-2016
Definition at line 23 of file powheg_base.py.
|
inherited |
Returns a list of strings to be treated as warning messages in the log They otherwise throw an error
Definition at line 44 of file powheg_base.py.
def python.processes.powheg_V2.PowhegV2.integration_file_names | ( | self | ) |
Wildcarded list of integration files that might be created by this process.
All files matching these patterns will be included in the gridpack.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 67 of file powheg_V2.py.
|
inherited |
Manual fix for external libraries path. This library is expected to be installed in the POWHEGPATH folder. Needs to be adjusted if the version of the library changes.
Definition at line 123 of file powheg_base.py.
|
inherited |
Manual fix for MadLoop libraries, avoiding issues when /afs not available This is NOT a viable long-term solution and should be made obsolete after the migration The trick consists in making a symbolic link of some directory in the installation which contains some files needed by MadLoop
Definition at line 95 of file powheg_base.py.
def python.processes.powheg_V2.PowhegV2.mandatory_integration_file_names | ( | self | ) |
Wildcarded list of integration files that are needed for this process.
If some of the patterns don't match any files before running, a warning will be made to inform that no pre-made integration grid will be used.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 80 of file powheg_V2.py.
|
inherited |
Manual fix for OpenLoops libraries path, avoiding issues when /afs not available This is NOT a viable long-term solution and should be made obsolete after the migration away from AFS is more advanced.
Definition at line 76 of file powheg_base.py.
|
inherited |
Manual fix for OpenLoops libraries path, avoiding issues when /afs not available This is NOT a viable long-term solution and should be made obsolete after the migration away from AFS is more advanced.
Definition at line 58 of file powheg_base.py.
|
inherited |
Definition at line 317 of file powheg_base.py.
|
inherited |
Returns a list of strings to be treated as error messages in the log They otherwise do not throw an error
Definition at line 51 of file powheg_base.py.
|
inherited |
Retrieve all parameters that use a given keyword.
keyword | Powheg keyword that gets written to the runcard. |
Definition at line 57 of file configurable.py.
|
inherited |
Retrieve all parameters that use a given name.
name | Configurable parameter name exposed to the user. |
Definition at line 64 of file configurable.py.
def python.processes.powheg_V2.PowhegV2.powheg_version | ( | self | ) |
Version of PowhegBox process.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 92 of file powheg_V2.py.
|
inherited |
Scale calculation parameters by n_cores.
Definition at line 248 of file powheg_base.py.
|
inherited |
Definition at line 333 of file powheg_base.py.
def python.processes.powheg_V2.PowhegV2.stage_is_completed | ( | self, | |
stage | |||
) |
Set whether the specified POWHEG-BOX generation stage is complete.
Reimplemented from python.processes.powheg_base.PowhegBase.
Definition at line 96 of file powheg_V2.py.
|
inherited |
Validate integration keywords by forcing to integer values.
Definition at line 270 of file powheg_base.py.
|
inherited |
Validate any parameters which need it before preparing runcard.
Definition at line 265 of file powheg_base.py.
|
inherited |
List of additional algorithms to schedule.
Definition at line 171 of file powheg_base.py.
|
inherited |
Number of cores to use.
Definition at line 168 of file powheg_base.py.
|
inherited |
Definition at line 200 of file powheg_base.py.
|
inherited |
Powheg executable that will be used.
Definition at line 152 of file powheg_base.py.
|
inherited |
List of external processes to schedule.
Definition at line 174 of file powheg_base.py.
|
inherited |
Definition at line 199 of file powheg_base.py.
|
inherited |
Switch to determine whether reweighting is allowed.
Definition at line 189 of file powheg_base.py.
|
inherited |
List of available parameters.
Definition at line 19 of file configurable.py.
|
inherited |
Dictionary used to change parameters of the Powheg input.
The structure is: {"parameter" : [default_value, changed_value, parallelstage_to_changed_value]}
Definition at line 204 of file powheg_base.py.
|
inherited |
Log the PowhegBox version and process-code revision for AMI etc.
Also set environment variable POWHEGVER to this contain this information SVN revision of PowhegBox code
Definition at line 165 of file powheg_base.py.
|
inherited |
SVN revision of process code.
Definition at line 155 of file powheg_base.py.
|
inherited |
Switch to determine if the #rwgt and #pdf comments should be kept in lhe files despite using xml reweighting.
Definition at line 195 of file powheg_base.py.
|
inherited |
Switch to determine whether XML reweighting should be used.
Definition at line 192 of file powheg_base.py.
|
inherited |
List of validation functions to run before preparing runcard.
Definition at line 177 of file powheg_base.py.
|
inherited |
Special treatment for some log messages.
Definition at line 198 of file powheg_base.py.