ATLAS Offline Software
tt_NLOdecays.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 import itertools
5 
7  """! Default Powheg configuration for top pair production, with NLO corrections to the decays.
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(tt_NLOdecays, self).__init__(base_directory, "ttb_NLO_dec", **kwargs)
21 
22  # Add parameter validation functions
23  self.validation_functions.append("validate_decays")
24 
25  # List of t and t~ decay modes
26  __tp_decays = ["t > b e+ ve", "t > b mu+ vm", "t > b tau+ vt", "t > b u d~", "t > b c s~"]
27  __tm_decays = ["t~ > b~ e- ve~", "t~ > b~ mu- vm~", "t~ > b~ tau- vt~", "t~ > b~ u~ d", "t~ > b~ c~ s"]
28 
29 
30  self.allowed_decay_modes = ["t t~ > {} {}".format(tp.split("> ")[1], tm.split("> ")[1]) for tp, tm in itertools.product(__tp_decays, __tm_decays)]
31 
32  # Add all keywords for this process, overriding defaults if required
33  self.add_keyword("allrad", 1)
34  self.add_keyword("alphas_from_lhapdf")
35  self.add_keyword("altmap")
36  self.add_keyword("arXiv:1207.5018")
37  self.add_keyword("bmass")
38  self.add_keyword("bornktmin")
39  self.add_keyword("bornonly")
40  self.add_keyword("bornsuppfact")
41  self.add_keyword("bornzerodamp")
42  self.add_keyword("bottomthr")
43  self.add_keyword("bottomthrpdf")
44  self.add_keyword("btildeborn")
45  self.add_keyword("btildecoll")
46  self.add_keyword("btildereal")
47  self.add_keyword("btildevirt")
48  self.add_keyword("btlscalect")
49  self.add_keyword("btlscalereal")
50  self.add_keyword("charmthr")
51  self.add_keyword("charmthrpdf")
52  self.add_keyword("check_bad_st1")
53  self.add_keyword("check_bad_st2")
54  self.add_keyword("clobberlhe")
55  self.add_keyword("colltest")
56  self.add_keyword("complexmass")
57  self.add_keyword("compress_lhe")
58  self.add_keyword("compress_upb")
59  self.add_keyword("compute_rwgt")
60  self.add_keyword("doublefsr")
61  self.add_keyword("doubleresonant")
62  self.add_keyword("evenmaxrat")
63  self.add_keyword("facscfact", self.default_scales[0])
64  self.add_keyword("fastbtlbound")
65  self.add_keyword("fixedgrid")
66  self.add_keyword("fixedscale")
67  self.add_keyword("flg_debug")
68  self.add_keyword("foldcsi")
69  self.add_keyword("foldphi")
70  self.add_keyword("foldy")
71  self.add_keyword("fullrwgt")
72  self.add_keyword("fullrwgtmode")
73  self.add_keyword("hdamp", 175)
74  self.add_keyword("hfact")
75  self.add_keyword("icsimax")
76  self.add_keyword("ih1")
77  self.add_keyword("ih2")
78  self.add_keyword("itmx1")
79  self.add_keyword("itmx1rm")
80  self.add_keyword("itmx2")
81  self.add_keyword("itmx2rm")
82  self.add_keyword("iupperfsr")
83  self.add_keyword("iupperisr")
84  self.add_keyword("iymax")
85  self.add_keyword("lhans1", self.default_PDFs)
86  self.add_keyword("lhans2", self.default_PDFs)
87  self.add_keyword("lhapdf6maxsets")
88  self.add_keyword("lhrwgt_descr")
89  self.add_keyword("lhrwgt_group_combine")
90  self.add_keyword("lhrwgt_group_name")
91  self.add_keyword("lhrwgt_id")
92  self.add_keyword("LOevents")
93  self.add_keyword("manyseeds")
94  self.add_keyword("max_io_bufsize")
95  self.add_keyword("maxseeds")
96  self.add_keyword("mglowidth")
97  self.add_keyword("minlo")
98  self.add_keyword("mintupbratlim")
99  self.add_keyword("mintupbxless")
100  self.add_keyword("mockoffshelltop")
101  self.add_keyword("ncall1", 1000000)
102  self.add_keyword("ncall1rm")
103  self.add_keyword("ncall2", 500000)
104  self.add_keyword("ncall2rm")
105  self.add_keyword("ncallfrominput")
106  self.add_keyword("nlowhich")
107  self.add_keyword("noevents")
108  self.add_keyword("nospincorr")
109  self.add_keyword("novirtual")
110  self.add_keyword("nubound", 100000)
111  self.add_keyword("offshellscales")
112  self.add_keyword("offshelltop")
113  self.add_keyword("olddij")
114  self.add_keyword("par_2gsupp")
115  self.add_keyword("par_diexp")
116  self.add_keyword("par_dijexp")
117  self.add_keyword("parallelstage")
118  self.add_keyword("pdfreweight")
119  self.add_keyword("ptsqmin")
120  self.add_keyword("ptsupp")
121  self.add_keyword("radregion")
122  self.add_keyword("rand1")
123  self.add_keyword("rand2")
124  self.add_keyword("renscfact", self.default_scales[1])
125  self.add_keyword("rwl_add")
126  self.add_keyword("rwl_file")
127  self.add_keyword("rwl_format_rwgt")
128  self.add_keyword("rwl_group_events")
129  self.add_keyword("smartsig")
130  self.add_keyword("softtest")
131  self.add_keyword("stage2init")
132  self.add_keyword("storeinfo_rwgt")
133  self.add_keyword("storemintupb")
134  self.add_keyword("tbardec", hidden=True)
135  self.add_keyword("testplots")
136  self.add_keyword("testsuda")
137  self.add_keyword("tmass")
138  self.add_keyword("topdec", self.allowed_decay_modes[0], name="decay_mode")
139  self.add_keyword("ubexcess_correct")
140  self.add_keyword("ubsigmadetails")
141  self.add_keyword("use-old-grid")
142  self.add_keyword("use-old-ubound")
143  self.add_keyword("withdamp")
144  self.add_keyword("withnegweights")
145  self.add_keyword("withsubtr")
146  self.add_keyword("xgriditeration")
147  self.add_keyword("xupbound", 2)
148 
149  def validate_decays(self):
150  """! Validate topdec and tbardec keywords."""
151  self.expose() # convenience call to simplify syntax
152  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
153  # Calculate appropriate decay mode numbers
154  __decay_products = list(map(str.strip, self.decay_mode.replace("~", "").replace("+", "").replace("-", "").split("b")))
155  __decay_mode_lookup = {"e ve": 11, "mu vm": 13, "tau vt": 15, "u d": 1, "c s": 3}
156  list(self.parameters_by_keyword("topdec"))[0].value = __decay_mode_lookup[__decay_products[1]]
157  list(self.parameters_by_keyword("tbardec"))[0].value = __decay_mode_lookup[__decay_products[2]]
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
python.processes.powheg.tt_NLOdecays.tt_NLOdecays.validate_decays
def validate_decays(self)
Validate topdec and tbardec keywords.
Definition: tt_NLOdecays.py:149
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.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.tt_NLOdecays.tt_NLOdecays
Default Powheg configuration for top pair production, with NLO corrections to the decays.
Definition: tt_NLOdecays.py:6
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.tt_NLOdecays.tt_NLOdecays.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: tt_NLOdecays.py:30
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
python.processes.powheg.tt_NLOdecays.tt_NLOdecays.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: tt_NLOdecays.py:14
Trk::split
@ split
Definition: LayerMaterialProperties.h:38