ATLAS Offline Software
Wy.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_V2 import PowhegV2
4 
5 
6 class Wy(PowhegV2):
7  """! Default Powheg configuration for W-boson production with an associated photon.
8 
9  Create a configurable object with all applicable Powheg options.
10 
11  @author James Robinson <james.robinson@cern.ch>
12  """
13 
14  def __init__(self, base_directory, **kwargs):
15  """! Constructor: all process options are set here.
16 
17  @param base_directory: path to PowhegBox code.
18  @param kwargs dictionary of arguments from Generate_tf.
19  """
20  super(Wy, self).__init__(base_directory, "Wgamma", **kwargs)
21 
22  # Add parameter validation functions
23  self.validation_functions.append("validate_decays")
24 
25 
26  self.allowed_decay_modes = ["w- > e- ve~", "w- > mu- vm~", "w- > tau- vt~", "w+ > e+ ve", "w+ > mu+ vm", "w+ > tau+ vt"]
27 
28  # Add all keywords for this process, overriding defaults if required
29  self.add_keyword("alphaem")
30  self.add_keyword("alphaem0")
31  self.add_keyword("bmass_lhe")
32  self.add_keyword("bornktmin", 1.0)
33  self.add_keyword("bornonly")
34  self.add_keyword("bornsuppfact")
35  self.add_keyword("bornzerodamp", 1)
36  self.add_keyword("bottomthr")
37  self.add_keyword("bottomthrpdf")
38  self.add_keyword("btildeborn")
39  self.add_keyword("btildecoll")
40  self.add_keyword("btildereal")
41  self.add_keyword("btildevirt")
42  self.add_keyword("btlscalect")
43  self.add_keyword("btlscalereal")
44  self.add_keyword("charmthr")
45  self.add_keyword("charmthrpdf")
46  self.add_keyword("check_bad_st1")
47  self.add_keyword("check_bad_st2")
48  self.add_keyword("CKM_Vcb")
49  self.add_keyword("CKM_Vcd")
50  self.add_keyword("CKM_Vcs")
51  self.add_keyword("CKM_Vtb")
52  self.add_keyword("CKM_Vtd")
53  self.add_keyword("CKM_Vts")
54  self.add_keyword("CKM_Vub")
55  self.add_keyword("CKM_Vud")
56  self.add_keyword("CKM_Vus")
57  self.add_keyword("clobberlhe")
58  self.add_keyword("cmass_lhe")
59  self.add_keyword("colltest")
60  self.add_keyword("compress_lhe")
61  self.add_keyword("compress_upb")
62  self.add_keyword("compute_rwgt")
63  self.add_keyword("Deltak_gam")
64  self.add_keyword("deltar")
65  self.add_keyword("doublefsr")
66  self.add_keyword("evenmaxrat")
67  self.add_keyword("facscfact", self.default_scales[0])
68  self.add_keyword("factsc2min", -1)
69  self.add_keyword("fastbtlbound")
70  self.add_keyword("fixedgrid")
71  self.add_keyword("fixedscale")
72  self.add_keyword("flg_debug")
73  self.add_keyword("foldcsi", 5)
74  self.add_keyword("foldphi", 2)
75  self.add_keyword("foldy", 2)
76  self.add_keyword("frensc2min", -1)
77  self.add_keyword("fullrwgt")
78  self.add_keyword("fullrwgtmode")
79  self.add_keyword("G_mu")
80  self.add_keyword("hdamp")
81  self.add_keyword("hfact")
82  self.add_keyword("icsimax")
83  self.add_keyword("idvecbos")
84  self.add_keyword("ih1")
85  self.add_keyword("ih2")
86  self.add_keyword("itmx1", 5)
87  self.add_keyword("itmx1rm")
88  self.add_keyword("itmx2", 5)
89  self.add_keyword("itmx2rm")
90  self.add_keyword("iupperfsr")
91  self.add_keyword("iupperisr")
92  self.add_keyword("iymax")
93  self.add_keyword("kt2minqed")
94  self.add_keyword("Lambda_gam")
95  self.add_keyword("lhans1", self.default_PDFs)
96  self.add_keyword("lhans2", self.default_PDFs)
97  self.add_keyword("lhapdf6maxsets")
98  self.add_keyword("lhrwgt_descr")
99  self.add_keyword("lhrwgt_group_combine")
100  self.add_keyword("lhrwgt_group_name")
101  self.add_keyword("lhrwgt_id")
102  self.add_keyword("LOevents")
103  self.add_keyword("manyseeds")
104  self.add_keyword("max_io_bufsize")
105  self.add_keyword("maxseeds")
106  self.add_keyword("minlo_nnll")
107  self.add_keyword("minlo", 1)
108  self.add_keyword("mintupbratlim")
109  self.add_keyword("mintupbxless")
110  self.add_keyword("modept2gamlep")
111  self.add_keyword("ncall1", 250000)
112  self.add_keyword("ncall1rm")
113  self.add_keyword("ncall2", 1600000)
114  self.add_keyword("ncall2rm")
115  self.add_keyword("ncallfrominput")
116  self.add_keyword("nlotestonly")
117  self.add_keyword("noevents")
118  self.add_keyword("novirtual")
119  self.add_keyword("nubound", 100000)
120  self.add_keyword("olddij", 1)
121  self.add_keyword("par_2gsupp")
122  self.add_keyword("par_diexp")
123  self.add_keyword("par_dijexp")
124  self.add_keyword("parallelstage")
125  self.add_keyword("pdfreweight")
126  self.add_keyword("phspseparation")
127  self.add_keyword("powheg-c-lo")
128  self.add_keyword("powheg-nc")
129  self.add_keyword("ptsqmin")
130  self.add_keyword("ptsupp")
131  self.add_keyword("radregion")
132  self.add_keyword("rand1")
133  self.add_keyword("rand2")
134  self.add_keyword("renscfact", self.default_scales[1])
135  self.add_keyword("runningscale")
136  self.add_keyword("rwl_add")
137  self.add_keyword("rwl_file")
138  self.add_keyword("rwl_format_rwgt")
139  self.add_keyword("rwl_group_events")
140  self.add_keyword("semileptonic")
141  self.add_keyword("skipextratests")
142  self.add_keyword("smartsig")
143  self.add_keyword("softtest")
144  self.add_keyword("stage2init")
145  self.add_keyword("sthw2")
146  self.add_keyword("storeinfo_rwgt")
147  self.add_keyword("storemintupb")
148  self.add_keyword("testplots")
149  self.add_keyword("testsuda")
150  self.add_keyword("ubexcess_correct")
151  self.add_keyword("ubsigmadetails")
152  self.add_keyword("use-old-grid")
153  self.add_keyword("use-old-ubound")
154  self.add_keyword("vdecaymode", self.allowed_decay_modes[0], name="decay_mode")
155  self.add_keyword("withdamp", 1)
156  self.add_keyword("withnegweights")
157  self.add_keyword("withsubtr")
158  self.add_keyword("Wmass")
159  self.add_keyword("Wwidth")
160  self.add_keyword("xgriditeration")
161  self.add_keyword("xupbound", 10)
162  self.add_keyword("Zmass")
163  self.add_keyword("Zwidth")
164 
165  def validate_decays(self):
166  """! Validate idvecbos and vdecaymode keywords."""
167  self.expose() # convenience call to simplify syntax
168  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
169  # Calculate appropriate decay mode numbers
170  list(self.parameters_by_keyword("idvecbos"))[0].value = 24 * [-1, +1][self.decay_mode.startswith("w+")]
171  __decay_mode_lookup = {"e- ve~": 1, "mu- vm~": 2, "tau- vt~": 3, "e+ ve": 1, "mu+ vm": 2, "tau+ vt": 3}
172  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.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
python.processes.powheg.Wy.Wy.validate_decays
def validate_decays(self)
Validate idvecbos and vdecaymode keywords.
Definition: Wy.py:165
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.Wy.Wy.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: Wy.py:14
python.processes.powheg.Wy.Wy.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: Wy.py:26
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
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg_base.PowhegBase.default_PDFs
def default_PDFs(self)
Default PDFs for this process.
Definition: powheg_base.py:241
python.processes.powheg_V2.PowhegV2
Base class for PowhegBox V2 processes.
Definition: powheg_V2.py:6
Trk::split
@ split
Definition: LayerMaterialProperties.h:38
python.processes.powheg.Wy.Wy
Default Powheg configuration for W-boson production with an associated photon.
Definition: Wy.py:6