ATLAS Offline Software
Loading...
Searching...
No Matches
powheg_Beta.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from .powheg_base import PowhegBase
4import glob
5
6
8 """! Base class for PowhegBox RES processes.
9
10 All RES processes inherit from this class.
11
12 @author James Robinson <james.robinson@cern.ch>
13 """
14
15 def __init__(self, base_directory, executable_name, **kwargs):
16 """! Constructor.
17
18 @param base_directory path to PowhegBox code.
19 @param executable_name folder containing appropriate PowhegBox executable.
20 @param is_LO True if this is a leading-order process.
21 @param warning_output list of patterns which if found in the output will be treated as warning in the log.
22 @param error_output list of patterns which if found in the output will be treated as error in the log.
23 @param info_output list of patterns which if found in the output will be treated as info in the log.
24 """
25 super(PowhegBeta, self).__init__(base_directory, "powheg-box-res-bb4l-sl-beta", executable_name, warning_output = [], info_output = [], error_output = [], **kwargs)
26
27 @property
28 def default_PDFs(self):
29 """! Default PDFs for this process."""
30 __PDF_list = list(range(260000, 260101)) # NNPDF30_nlo_as_0118 central with eigensets
31 __PDF_list += [266000, 265000] # NNPDF30_nlo_as_0119 and NNPDF30_nlo_as_0117
32 __PDF_list += [303200] # NNPDF30_nnlo_as_0118_hessian
33 __PDF_list += [27400, 27100] # MSHT20nnlo_as118, MSHT20nlo_as118
34 __PDF_list += [14000, 14400] # CT18NNLO, CT18NLO
35 __PDF_list += [304400, 304200] # NNPDF31_nnlo_as_0118_hessian, NNPDF31_nlo_as_0118_hessian
36 __PDF_list += [331500, 331100] # NNPDF40_nnlo_as_01180_hessian, NNPDF40_nlo_as_01180
37 __PDF_list += [14200, 14300, 14100] # CT18ANNLO, CT18XNNLO and CT18ZNNLO
38 __PDF_list += list(range(93300, 93343)) # PDF4LHC21_40_pdfas with eigensets
39 __PDF_list += [338500, 338520, 338540] # NNPDF40MC_lo_as_01180, NNPDF40MC_nlo_as_01180, NNPDF40MC_nnlo_as_01180
40 return __PDF_list
41
42 @property
43 def default_scales(self):
44 """! Default scale variations for this process."""
45 return [[1.0, 1.0, 1.0, 0.5, 0.5, 2.0, 2.0],\
46 [1.0, 0.5, 2.0, 0.5, 1.0, 1.0, 2.0]]
47
48 @property
50 """! Wildcarded list of files created by this process that can be deleted."""
51 return [
52 "allborn_equiv",
53 "FlavRegList",
54 "mint*.top",
55 "parameters.ol",
56 "pwg*.top",
57 "pwgboundviolations*.dat",
58 "pwgcounters*.dat",
59 "pwgseeds.dat",
60 "pwhg_checklimits",
61 "sigreal_btl0_equiv",
62 "sigregular_equiv",
63 "sigvirtual_equiv"
64 ]
65
66
67 @property
69 """! Wildcarded list of integration files that might be created by this process."""
70 return [
71 "pwg*upb*.dat",
72 "pwg*xgrid*.dat",
73 "pwgfullgrid*.dat",
74 "pwggrid*.dat",
75 "pwgubound*.dat",
76 "pwg*stat.dat",
77 ]
78
79 @property
81 """! Wildcarded list of integration files that are needed for this process."""
82 return self.integration_file_names
83
84 @property
85 def powheg_version(self):
86 """! Version of PowhegBox process."""
87 return "RES"
88
89 def stage_is_completed(self, stage):
90 """! Set whether the specified POWHEG-BOX generation stage is complete."""
91 if stage == 1:
92 required_files = ["pwg*xgrid*.dat"]
93 elif stage == 2:
94 required_files = ["pwg*upb*.dat", "pwggrid*.dat"]
95 elif stage == 3:
96 required_files = ["pwgfullgrid*.dat", "pwgubound*.dat"]
97 else:
98 return False
99
100 # Check that required files have been found
101 for required_file in required_files:
102 if not glob.glob(required_file):
103 return False
104 return True
Base class for PowhegBox RES processes.
Definition powheg_Beta.py:7
powheg_version(self)
Version of PowhegBox process.
default_scales(self)
Default scale variations for this process.
stage_is_completed(self, stage)
Set whether the specified POWHEG-BOX generation stage is complete.
default_PDFs(self)
Default PDFs for this process.
mandatory_integration_file_names(self)
Wildcarded list of integration files that are needed for this process.
integration_file_names(self)
Wildcarded list of integration files that might be created by this process.
__init__(self, base_directory, executable_name, **kwargs)
Constructor.
files_for_cleanup(self)
Wildcarded list of files created by this process that can be deleted.
Base class for PowhegBox processes.
integration_file_names(self)
Wildcarded list of integration files that might be created by this process.