ATLAS Offline Software
Wj_MiNNLO.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaCommon import Logging
4 from ..powheg_V2 import PowhegV2
5 import os
6 
7 
8 logger = Logging.logging.getLogger("PowhegControl")
9 
10 
12  """! Default Powheg configuration for single W-boson production plus one jet using MINNLOPS.
13 
14  Create a configurable object with all applicable Powheg options.
15 
16  @author Simone Amoroso <simone.amoroso@amoroso.ch>
17  """
18 
19  def __init__(self, base_directory, **kwargs):
20  """! Constructor: all process options are set here.
21 
22  @param base_directory: path to PowhegBox code.
23  @param kwargs dictionary of arguments from Generate_tf.
24  """
25 
26  # this is very hacky
27  warnings = super(Wj_MiNNLO, self).hoppet_warning()
28  infos = super(Wj_MiNNLO, self).hoppet_info()
29 
30  super(Wj_MiNNLO, self).__init__(base_directory, os.path.join("Wj", "WjMiNNLO"), powheg_executable="pwhg_main", warning_output=warnings, info_output=infos, **kwargs)
31 
32  # Add algorithms to the sequence
33 
34  # Add parameter validation functions
35  self.validation_functions.append("validate_decays")
36 
37 
38  self.allowed_decay_modes = ["w- > e- ve~", "w- > mu- vm~", "w- > tau- vt~", "w+ > e+ ve", "w+ > mu+ vm", "w+ > tau+ vt"]
39 
40  # Add all keywords for this process, overriding defaults if required
41  self.add_keyword("alphaem")
42  self.add_keyword("alphas_from_lhapdf")
43  self.add_keyword("alphas_from_pdf",1.0)
44  self.add_keyword("alphas_cutoff_fact")
45  self.add_keyword("bornktmin", 5.0)
46  self.add_keyword("bornonly")
47  self.add_keyword("bornsuppfact")
48  self.add_keyword("bornzerodamp")
49  self.add_keyword("bottomthr")
50  self.add_keyword("bottomthrpdf")
51  self.add_keyword("btildeborn")
52  self.add_keyword("btildecoll")
53  self.add_keyword("btildereal")
54  self.add_keyword("btildevirt")
55  self.add_keyword("btlscalect")
56  self.add_keyword("btlscalereal")
57  self.add_keyword("charmthr")
58  self.add_keyword("charmthrpdf")
59  self.add_keyword("check_bad_st1")
60  self.add_keyword("check_bad_st2")
61  self.add_keyword("CKM_Vcb")
62  self.add_keyword("CKM_Vcd")
63  self.add_keyword("CKM_Vcs")
64  self.add_keyword("CKM_Vtb")
65  self.add_keyword("CKM_Vtd")
66  self.add_keyword("CKM_Vts")
67  self.add_keyword("CKM_Vub")
68  self.add_keyword("CKM_Vud")
69  self.add_keyword("CKM_Vus")
70  self.add_keyword("clobberlhe")
71  self.add_keyword("colltest")
72  self.add_keyword("compress_lhe")
73  self.add_keyword("compress_upb")
74  self.add_keyword("compute_rwgt")
75  self.add_keyword("distribute_by_ub")
76  self.add_keyword("distribute_by_ub_AP")
77  self.add_keyword("doublefsr")
78  self.add_keyword("evenmaxrat")
79  self.add_keyword("facscfact", self.default_scales[0])
80  self.add_keyword("factsc2min")
81  self.add_keyword("fastbtlbound")
82  self.add_keyword("fixedgrid")
83  self.add_keyword("flg_debug")
84  self.add_keyword("foldcsi", 5)
85  self.add_keyword("foldphi", 5)
86  self.add_keyword("foldy", 5)
87  self.add_keyword("frensc2min")
88  self.add_keyword("fullrwgt")
89  self.add_keyword("fullrwgtmode")
90  self.add_keyword("hdamp")
91  self.add_keyword("hfact")
92  self.add_keyword("icsimax")
93  self.add_keyword("idvecbos", hidden=True)
94  self.add_keyword("ih1")
95  self.add_keyword("ih2")
96  self.add_keyword("inc_delta_terms")
97  self.add_keyword("itmx1", 5)
98  self.add_keyword("itmx1rm")
99  self.add_keyword("itmx2", 5)
100  self.add_keyword("itmx2rm")
101  self.add_keyword("iupperfsr")
102  self.add_keyword("iupperisr")
103  self.add_keyword("iymax")
104  self.add_keyword("largeptscales", 0)
105  self.add_keyword("lhans1", self.default_PDFs)
106  self.add_keyword("lhans2", self.default_PDFs)
107  self.add_keyword("lhapdf6maxsets")
108  self.add_keyword("lhrwgt_descr")
109  self.add_keyword("lhrwgt_group_combine")
110  self.add_keyword("lhrwgt_group_name")
111  self.add_keyword("lhrwgt_id")
112  self.add_keyword("LOevents")
113  self.add_keyword("manyseeds")
114  self.add_keyword("max_io_bufsize")
115  self.add_keyword("max_W_mass", 2.0 * list(self.parameters_by_name("beam_energy"))[0].value)
116  self.add_keyword("maxseeds")
117  self.add_keyword("min_W_mass", 2.5)
118  self.add_keyword("minlo_nnll")
119  self.add_keyword("minlo", 1)
120  self.add_keyword("minnlo", 1)
121  self.add_keyword("mintupbratlim")
122  self.add_keyword("mintupbxless")
123  self.add_keyword("modlog_p")
124  self.add_keyword("ncall1", 20000)
125  self.add_keyword("ncall1rm")
126  self.add_keyword("ncall2", 100000)
127  self.add_keyword("ncall2rm")
128  self.add_keyword("ncallfrominput")
129  self.add_keyword("noevents")
130  self.add_keyword("novirtual")
131  self.add_keyword("nubound", 60000)
132  self.add_keyword("olddij")
133  self.add_keyword("par_2gsupp")
134  self.add_keyword("par_diexp")
135  self.add_keyword("par_dijexp")
136  self.add_keyword("par_fsrtinycsi")
137  self.add_keyword("par_fsrtinyy")
138  self.add_keyword("par_isrtinycsi")
139  self.add_keyword("par_isrtinyy")
140  self.add_keyword("parallelstage")
141  self.add_keyword("pdfreweight")
142  self.add_keyword("pdf_cutoff_fact")
143  self.add_keyword("ptsqmin")
144  self.add_keyword("ptsupp")
145  self.add_keyword("Q0",2)
146  self.add_keyword("radregion")
147  self.add_keyword("rand1")
148  self.add_keyword("rand2")
149  self.add_keyword("renscfact", self.default_scales[1])
150  self.add_keyword("runningscales")
151  self.add_keyword("rwl_add")
152  self.add_keyword("rwl_file")
153  self.add_keyword("rwl_format_rwgt")
154  self.add_keyword("rwl_group_events")
155  self.add_keyword("skipextratests")
156  self.add_keyword("smartsig")
157  self.add_keyword("softtest")
158  self.add_keyword("stage2init")
159  self.add_keyword("sthw2")
160  self.add_keyword("storeinfo_rwgt")
161  self.add_keyword("storemintupb")
162  self.add_keyword("sudscalevar")
163  self.add_keyword("testplots")
164  self.add_keyword("testsuda")
165  self.add_keyword("ubexcess_correct")
166  self.add_keyword("ubsigmadetails")
167  self.add_keyword("use-old-grid")
168  self.add_keyword("use-old-ubound")
169  self.add_keyword("vdecaymode", self.allowed_decay_modes[0], name="decay_mode")
170  self.add_keyword("withdamp")
171  self.add_keyword("withnegweights")
172  self.add_keyword("withsubtr")
173  self.add_keyword("Wmass")
174  self.add_keyword("Wwidth")
175  self.add_keyword("xgriditeration")
176  self.add_keyword("xupbound", 6)
177  self.add_keyword("Zmass")
178  self.add_keyword("Zwidth")
179 
180  def validate_decays(self):
181  """! Validate idvecbos and vdecaymode keywords."""
182  self.expose() # convenience call to simplify syntax
183  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
184  # Calculate appropriate decay mode numbers
185  list(self.parameters_by_keyword("idvecbos"))[0].value = 24 * [-1, +1][self.decay_mode.startswith("w+")]
186  __decay_mode_lookup = {"e- ve~": 1, "mu- vm~": 2, "tau- vt~": 3, "e+ ve": 1, "mu+ vm": 2, "tau+ vt": 3}
187  list(self.parameters_by_keyword("vdecaymode"))[0].value = __decay_mode_lookup[self.decay_mode.split("> ")[1]]
python.processes.configurable.Configurable.expose
def expose(self)
Add all names to the interface of this object.
Definition: configurable.py:46
python.processes.powheg_base.PowhegBase.hoppet_info
def hoppet_info(self)
Definition: powheg_base.py:23
python.processes.powheg_base.PowhegBase.hoppet_warning
def hoppet_warning(self)
Definition: powheg_base.py:44
python.processes.configurable.Configurable.parameters_by_name
def parameters_by_name(self, name)
Retrieve all parameters that use a given name.
Definition: configurable.py:64
python.processes.powheg_base.PowhegBase.default_scales
def default_scales(self)
Default scale variations for this process.
Definition: powheg_base.py:246
python.processes.configurable.Configurable.add_keyword
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.
Definition: configurable.py:21
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.processes.configurable.Configurable.parameters_by_keyword
def parameters_by_keyword(self, keyword)
Retrieve all parameters that use a given keyword.
Definition: configurable.py:57
python.processes.powheg_base.PowhegBase.validation_functions
validation_functions
List of validation functions to run before preparing runcard.
Definition: powheg_base.py:179
python.processes.powheg_base.PowhegBase.check_decay_mode
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.
Definition: powheg_base.py:283
python.processes.powheg.Wj_MiNNLO.Wj_MiNNLO.validate_decays
def validate_decays(self)
Validate idvecbos and vdecaymode keywords.
Definition: Wj_MiNNLO.py:180
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg.Wj_MiNNLO.Wj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: Wj_MiNNLO.py:19
python.processes.powheg_base.PowhegBase.default_PDFs
def default_PDFs(self)
Default PDFs for this process.
Definition: powheg_base.py:241
python.processes.powheg.Wj_MiNNLO.Wj_MiNNLO
Default Powheg configuration for single W-boson production plus one jet using MINNLOPS.
Definition: Wj_MiNNLO.py:11
python.processes.powheg_V2.PowhegV2
Base class for PowhegBox V2 processes.
Definition: powheg_V2.py:6
python.processes.powheg.Wj_MiNNLO.Wj_MiNNLO.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: Wj_MiNNLO.py:38
Trk::split
@ split
Definition: LayerMaterialProperties.h:38