ATLAS Offline Software
powheg_V1.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 from .powheg_base import PowhegBase
4 
5 
7  """! Base class for PowhegBox V1 processes.
8 
9  All V1 processes inherit from this class.
10 
11  @author James Robinson <james.robinson@cern.ch>
12  """
13 
14  def __init__(self, base_directory, executable_name, **kwargs):
15  """! Constructor.
16 
17  @param base_directory path to PowhegBox code.
18  @param executable_name folder containing appropriate PowhegBox executable.
19  @param warning_output list of patterns which if found in the output will be treated as warning in the log.
20  @param error_output list of patterns which if found in the output will be treated as error in the log.
21  @param info_output list of patterns which if found in the output will be treated as info in the log.
22  """
23  super(PowhegV1, self).__init__(base_directory, "POWHEG-BOX", executable_name, is_reweightable=False, warning_output = [], info_output = [], error_output = [], **kwargs)
24 
25  @property
26  def default_PDFs(self):
27  """! Default PDFs for this process."""
28  __PDF_list = list(range(260000, 260101)) # NNPDF30_nlo_as_0118 central with eigensets
29  __PDF_list += [266000, 265000] # NNPDF30_nlo_as_0119 and NNPDF30_nlo_as_0117
30  __PDF_list += [303200] # NNPDF30_nnlo_as_0118_hessian
31  __PDF_list += [27400, 27100] # MSHT20nnlo_as118, MSHT20nlo_as118
32  __PDF_list += [14000, 14400] # CT18NNLO, CT18NLO
33  __PDF_list += [304400, 304200] # NNPDF31_nnlo_as_0118_hessian, NNPDF31_nlo_as_0118_hessian
34  __PDF_list += [331500, 331100] # NNPDF40_nnlo_as_01180_hessian, NNPDF40_nlo_as_01180
35  __PDF_list += [14200, 14300, 14100] # CT18ANNLO, CT18XNNLO and CT18ZNNLO
36  __PDF_list += list(range(93300, 93343)) # PDF4LHC21_40_pdfas with eigensets
37  return __PDF_list
38 
39  @property
40  def default_scales(self):
41  """! Default scale variations for this process."""
42  return [[1.0, 1.0, 1.0, 0.5, 0.5, 2.0, 2.0],\
43  [1.0, 0.5, 2.0, 0.5, 1.0, 1.0, 2.0]]
44 
45  @property
46  def files_for_cleanup(self):
47  """! Wildcarded list of files created by this process that can be deleted."""
48  return [
49  "FlavRegList",
50  "pwg*.top",
51  "pwgseeds.dat",
52  "pwgcounters*.dat",
53  "pwgubsigma.dat",
54  "pwhg_checklimits"
55  ]
56 
57  @property
59  """! Wildcarded list of integration files that might be created by this process."""
60  return [
61  "pwgbtildeupb*.dat",
62  "pwgfullgrid.dat",
63  "pwggrid*.dat",
64  "pwgremnupb*.dat",
65  "pwgstat*.dat",
66  "pwgubound*.dat",
67  "pwgxgrid*.dat"
68  ]
69 
70  @property
72  """! Wildcarded list of integration files that are needed for this process."""
73  """! 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."""
74  return self.integration_file_names
75 
76  @property
77  def powheg_version(self):
78  """! Version of PowhegBox process."""
79  return "V1"
python.processes.powheg_base.PowhegBase
Base class for PowhegBox processes.
Definition: powheg_base.py:14
python.processes.powheg_V1.PowhegV1.default_PDFs
def default_PDFs(self)
Default PDFs for this process.
Definition: powheg_V1.py:26
python.processes.powheg_V1.PowhegV1.__init__
def __init__(self, base_directory, executable_name, **kwargs)
Constructor.
Definition: powheg_V1.py:14
python.processes.powheg_base.PowhegBase.integration_file_names
def integration_file_names(self)
Wildcarded list of integration files that might be created by this process.
Definition: powheg_base.py:223
python.processes.powheg_V1.PowhegV1.mandatory_integration_file_names
def mandatory_integration_file_names(self)
Wildcarded list of integration files that are needed for this process.
Definition: powheg_V1.py:71
python.processes.powheg_V1.PowhegV1.files_for_cleanup
def files_for_cleanup(self)
Wildcarded list of files created by this process that can be deleted.
Definition: powheg_V1.py:46
python.processes.powheg_V1.PowhegV1.integration_file_names
def integration_file_names(self)
Wildcarded list of integration files that might be created by this process.
Definition: powheg_V1.py:58
python.processes.powheg_V1.PowhegV1
Base class for PowhegBox V1 processes.
Definition: powheg_V1.py:6
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg_V1.PowhegV1.powheg_version
def powheg_version(self)
Version of PowhegBox process.
Definition: powheg_V1.py:77
python.processes.powheg_V1.PowhegV1.default_scales
def default_scales(self)
Default scale variations for this process.
Definition: powheg_V1.py:40