3 from .powheg_base
import PowhegBase
7 """! Base class for PowhegBox V2 processes.
9 All V2 processes inherit from this class.
11 @author James Robinson <james.robinson@cern.ch>
14 def __init__(self, base_directory, executable_name, warning_output = [], info_output = [], error_output = [], **kwargs):
17 @param base_directory path to PowhegBox code.
18 @param executable_name folder containing appropriate PowhegBox executable.
19 @param is_LO True if this is a leading-order process.
20 @param warning_output list of patterns which if found in the output will be treated as warning in the log.
21 @param error_output list of patterns which if found in the output will be treated as error in the log.
22 @param info_output list of patterns which if found in the output will be treated as info in the log.
24 super(PowhegV2, self).
__init__(base_directory,
"POWHEG-BOX-V2", executable_name=executable_name, warning_output=warning_output, info_output=info_output, error_output=error_output, **kwargs)
28 """! Default PDFs for this process."""
30 __PDF_list += [266000, 265000]
31 __PDF_list += [303200]
32 __PDF_list += [27400, 27100]
33 __PDF_list += [14000, 14400]
34 __PDF_list += [304400, 304200]
35 __PDF_list += [331500, 331100]
36 __PDF_list += [14200, 14300, 14100]
38 __PDF_list += [338500, 338520, 338540]
43 """! Default scale variations for this process."""
44 return [[1.0, 1.0, 1.0, 0.5, 0.5, 2.0, 2.0],\
45 [1.0, 0.5, 2.0, 0.5, 1.0, 1.0, 2.0]]
49 """! Wildcarded list of files created by this process that can be deleted."""
54 "mint_upb_btildeupb.top",
55 "mint_upb_remnupb.top",
57 "pwgboundviolations*.dat",
63 "reweighting_input.xml",
69 """! Wildcarded list of integration files that might be created by this process."""
70 """! All files matching these patterns will be included in the gridpack."""
82 """! Wildcarded list of integration files that are needed for this process."""
83 """! 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."""
94 """! Version of PowhegBox process."""
98 """! Set whether the specified POWHEG-BOX generation stage is complete."""
100 required_files = [
"pwg*xg*.dat"]
102 required_files = [
"pwg*upb*.dat",
"pwggrid*.dat"]
104 required_files = [
"pwgfullgrid*.dat",
"pwgubound*.dat"]
109 for required_file
in required_files:
110 if not glob.glob(required_file):