ATLAS Offline Software
Wt_DS.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 
6 
7 logger = Logging.logging.getLogger("PowhegControl")
8 
9 
10 class Wt_DS(PowhegV2):
11  """! Default Powheg configuration for single top production with an associated W-boson through the t-channel (diagram subtraction).
12 
13  Create a configurable object with all applicable Powheg options.
14 
15  @author James Robinson <james.robinson@cern.ch>
16  """
17 
18  def __init__(self, base_directory, **kwargs):
19  """! Constructor: all process options are set here.
20 
21  @param base_directory: path to PowhegBox code.
22  @param kwargs dictionary of arguments from Generate_tf.
23  """
24  super(Wt_DS, self).__init__(base_directory, "ST_wtch_DS", **kwargs)
25 
26  # Add parameter validation functions
27  self.validation_functions.append("validate_decays")
28 
29 
30  self.allowed_top_decay_modes = ["t > all", "t > b j j", "t > b l+ vl", "t > b emu+ vemu", "t > b e+ ve",
31  "t > b mu+ vm", "t > b tau+ vt", "t~ > all", "t~ > b~ j j", "t~ > b~ l- vl~",
32  "t~ > b~ emu- vemu~", "t~ > b~ e- ve~", "t~ > b~ mu- vm~", "t~ > b~ tau- vt~"]
33 
34 
35  self.allowed_W_decay_modes = ["w > all", "w > j j", "w > l vl", "w > emu vemu", "w > e ve", "w > mu vm", "w > tau vt"]
36 
37  # Add all keywords for this process, overriding defaults if required
38  self.add_keyword("alphaem_inv")
39  self.add_keyword("alphas_from_lhapdf")
40  self.add_keyword("bornktmin")
41  self.add_keyword("bornonly")
42  self.add_keyword("bornsuppfact")
43  self.add_keyword("bornzerodamp")
44  self.add_keyword("bottomthr")
45  self.add_keyword("bottomthrpdf")
46  self.add_keyword("btildeborn")
47  self.add_keyword("btildecoll")
48  self.add_keyword("btildereal")
49  self.add_keyword("btildevirt")
50  self.add_keyword("btlscalect")
51  self.add_keyword("btlscalereal")
52  self.add_keyword("charmthr")
53  self.add_keyword("charmthrpdf")
54  self.add_keyword("check_bad_st1")
55  self.add_keyword("check_bad_st2")
56  self.add_keyword("CKM_Vcb")
57  self.add_keyword("CKM_Vcd")
58  self.add_keyword("CKM_Vcs")
59  self.add_keyword("CKM_Vtb")
60  self.add_keyword("CKM_Vtd")
61  self.add_keyword("CKM_Vts")
62  self.add_keyword("CKM_Vub")
63  self.add_keyword("CKM_Vud")
64  self.add_keyword("CKM_Vus")
65  self.add_keyword("clobberlhe")
66  self.add_keyword("colltest")
67  self.add_keyword("compress_lhe")
68  self.add_keyword("compress_upb")
69  self.add_keyword("compute_rwgt")
70  self.add_keyword("doublefsr")
71  self.add_keyword("evenmaxrat")
72  self.add_keyword("facscfact", self.default_scales[0])
73  self.add_keyword("fastbtlbound")
74  self.add_keyword("fixedgrid")
75  self.add_keyword("flg_debug")
76  self.add_keyword("foldcsi", 5)
77  self.add_keyword("foldphi", 2)
78  self.add_keyword("foldy", 2)
79  self.add_keyword("fullrwgt")
80  self.add_keyword("hdamp")
81  self.add_keyword("hfact")
82  self.add_keyword("icsimax")
83  self.add_keyword("ih1")
84  self.add_keyword("ih2")
85  self.add_keyword("itmx1", 5)
86  self.add_keyword("itmx1rm")
87  self.add_keyword("itmx2", 5)
88  self.add_keyword("itmx2rm")
89  self.add_keyword("iupperfsr")
90  self.add_keyword("iupperisr")
91  self.add_keyword("iymax")
92  self.add_keyword("lhans1", self.default_PDFs)
93  self.add_keyword("lhans2", self.default_PDFs)
94  self.add_keyword("lhfm/bmass")
95  self.add_keyword("lhfm/cmass")
96  self.add_keyword("lhfm/emass")
97  self.add_keyword("lhfm/mumass")
98  self.add_keyword("lhfm/taumass")
99  self.add_keyword("lhrwgt_descr")
100  self.add_keyword("lhrwgt_group_combine")
101  self.add_keyword("lhrwgt_group_name")
102  self.add_keyword("lhrwgt_id")
103  self.add_keyword("LOevents")
104  self.add_keyword("manyseeds")
105  self.add_keyword("max_io_bufsize")
106  self.add_keyword("maxseeds")
107  self.add_keyword("minlo")
108  self.add_keyword("mintupbratlim")
109  self.add_keyword("mintupbxless")
110  self.add_keyword("ncall1", 40000)
111  self.add_keyword("ncall1rm")
112  self.add_keyword("ncall2", 900000)
113  self.add_keyword("ncall2rm")
114  self.add_keyword("noevents")
115  self.add_keyword("novirtual")
116  self.add_keyword("nubound", 900000)
117  self.add_keyword("nwidthcutoff")
118  self.add_keyword("olddij")
119  self.add_keyword("par_2gsupp")
120  self.add_keyword("par_diexp")
121  self.add_keyword("par_dijexp")
122  self.add_keyword("parallelstage")
123  self.add_keyword("pdfreweight")
124  self.add_keyword("ptsqmin")
125  self.add_keyword("ptsupp")
126  self.add_keyword("radregion")
127  self.add_keyword("rand1")
128  self.add_keyword("rand2")
129  self.add_keyword("renscfact", self.default_scales[1])
130  self.add_keyword("runningscales", 1)
131  self.add_keyword("rwl_add")
132  self.add_keyword("rwl_file")
133  self.add_keyword("rwl_format_rwgt")
134  self.add_keyword("rwl_group_events")
135  self.add_keyword("skipextratests")
136  self.add_keyword("smartsig")
137  self.add_keyword("softtest")
138  self.add_keyword("stage2init")
139  self.add_keyword("sthw2")
140  self.add_keyword("storeinfo_rwgt")
141  self.add_keyword("storemintupb")
142  self.add_keyword("tdec/elbranching")
143  self.add_keyword("tdec/emass")
144  self.add_keyword("tdec/mumass")
145  self.add_keyword("tdec/taumass")
146  self.add_keyword("testplots")
147  self.add_keyword("testsuda")
148  self.add_keyword("topdecaymode", self.allowed_top_decay_modes[0], name="decay_mode_top")
149  self.add_keyword("topmass")
150  self.add_keyword("topwidth")
151  self.add_keyword("ttype", hidden=True)
152  self.add_keyword("ubexcess_correct")
153  self.add_keyword("ubsigmadetails")
154  self.add_keyword("use-old-grid")
155  self.add_keyword("use-old-ubound")
156  self.add_keyword("wdecaymode", self.allowed_W_decay_modes[0], name="decay_mode_W")
157  self.add_keyword("withdamp")
158  self.add_keyword("withfluxfactor")
159  self.add_keyword("withnegweights")
160  self.add_keyword("withsubtr")
161  self.add_keyword("withthetacut")
162  self.add_keyword("wmass")
163  self.add_keyword("wwidth")
164  self.add_keyword("xupbound", 4)
165 
166  def validate_decays(self):
167  """! Validate ttype, topdecaymode and wdecaymode keywords."""
168  self.expose() # convenience call to simplify syntax
169  if self.decay_mode_top not in self.allowed_top_decay_modes:
170  logger.warning("Decay mode {} not recognised!".format(self.decay_mode_top))
171  logger.info("Allowed decay modes are:")
172  [logger.info("... {}".format(decay_mode)) for decay_mode in self.allowed_top_decay_modes]
173  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode_top))
174  if self.decay_mode_W not in self.allowed_W_decay_modes:
175  logger.warning("Decay mode {} not recognised!".format(self.decay_mode_W))
176  logger.info("Allowed decay modes are:")
177  [logger.info("... {}".format(decay_mode)) for decay_mode in self.decay_mode_W]
178  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode_W))
179  # Calculate appropriate decay mode numbers
180  __top_decay = self.decay_mode_top.replace("~", "").replace("+", "").replace("-", "").replace("b", "").split("t > ")[1].strip()
181  __W_decay = self.decay_mode_W.split("w > ")[1].strip()
182  __decay_mode_lookup = {"all": "11111", "j j": "00011", "l vl": "11100", "emu vemu": "11000", "e ve": "10000", "mu vm": "01000", "tau vt": "00100"}
183  list(self.parameters_by_keyword("ttype"))[0].value = [+1, -1][self.decay_mode_top.startswith("t~")]
184  list(self.parameters_by_keyword("topdecaymode"))[0].value = __decay_mode_lookup[__top_decay]
185  list(self.parameters_by_keyword("wdecaymode"))[0].value = __decay_mode_lookup[__W_decay]
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.processes.configurable.Configurable.expose
def expose(self)
Add all names to the interface of this object.
Definition: configurable.py:46
vtune_athena.format
format
Definition: vtune_athena.py:14
python.processes.powheg_base.PowhegBase.default_scales
def default_scales(self)
Default scale variations for this process.
Definition: powheg_base.py:246
python.processes.powheg.Wt_DS.Wt_DS.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: Wt_DS.py:18
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.Wt_DS.Wt_DS.validate_decays
def validate_decays(self)
Validate ttype, topdecaymode and wdecaymode keywords.
Definition: Wt_DS.py:166
python.processes.powheg.Wt_DS.Wt_DS.allowed_top_decay_modes
allowed_top_decay_modes
List of allowed top decay modes.
Definition: Wt_DS.py:30
python.processes.powheg.Wt_DS.Wt_DS.allowed_W_decay_modes
allowed_W_decay_modes
List of allowed W decay modes.
Definition: Wt_DS.py:35
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg.Wt_DS.Wt_DS
Default Powheg configuration for single top production with an associated W-boson through the t-chann...
Definition: Wt_DS.py:10
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