ATLAS Offline Software
bblvlv.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaCommon import Logging
4 
5 from ..powheg_RES import PowhegRES
6 
7 
8 logger = Logging.logging.getLogger("PowhegControl")
9 
10 
12  """! Default Powheg configuration for top pair and Wt production including non-resonant and interference effects.
13 
14  Create a configurable object with all applicable Powheg options.
15 
16  @author James Robinson <james.robinson@cern.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  super(bblvlv, self).__init__(base_directory, "b_bbar_4l", **kwargs)
26 
27  # This is a hacky fix that's needed at the moment...
29 
30  # Add parameter validation functions
31  self.validation_functions.append("validate_decays")
32 
33 
34  self.allowed_decay_modes = ["b mu+ vmu b~ e- ve~", "b e+ ve b~ mu- vmu~", "b emu+ vemu b~ emu- vemu~",\
35  "b tau+ vtau b~ e- ve~", "b e+ ve b~ tau- vtau~", \
36  "b mu+ vmu b~ tau- vtau~", "b tau+ vtau b~ mu- vmu~", "b l+ vl b~ l- vl~"]
37 
38  # Add all keywords for this process, overriding defaults if required
39  self.add_keyword("allrad", 1)
40  self.add_keyword("alpha")
41  self.add_keyword("bmass")
42  self.add_keyword("bornktmin")
43  self.add_keyword("bornonly")
44  self.add_keyword("bornsuppfact")
45  self.add_keyword("bornzerodamp")
46  self.add_keyword("bottomthr")
47  self.add_keyword("bottomthrpdf")
48  self.add_keyword("btildeborn")
49  self.add_keyword("btildecoll")
50  self.add_keyword("btildereal")
51  self.add_keyword("btildevirt")
52  self.add_keyword("btlscalect")
53  self.add_keyword("btlscalereal")
54  self.add_keyword("charmthr")
55  self.add_keyword("charmthrpdf")
56  self.add_keyword("check_bad_st1")
57  self.add_keyword("check_bad_st2")
58  self.add_keyword("chklimseed")
59  self.add_keyword("clobberlhe")
60  self.add_keyword("colltest")
61  self.add_keyword("complexGFermi")
62  self.add_keyword("compress_lhe")
63  self.add_keyword("compress_upb")
64  self.add_keyword("compute_rwgt")
65  self.add_keyword("doublefsr")
66  self.add_keyword("enhancereg")
67  self.add_keyword("evenmaxrat")
68  self.add_keyword("ewscheme")
69  self.add_keyword("facscfact", self.default_scales[0])
70  self.add_keyword("fastbtlbound")
71  self.add_keyword("fixedscale")
72  self.add_keyword("flg_debug")
73  self.add_keyword("foldcsi", 2)
74  self.add_keyword("foldphi", 5)
75  self.add_keyword("foldy", 5)
76  self.add_keyword("for_reweighting")
77  self.add_keyword("fullrwgt")
78  self.add_keyword("hdamp", 172.5)
79  self.add_keyword("hfact")
80  self.add_keyword("hmass")
81  self.add_keyword("hwidth")
82  self.add_keyword("icsimax")
83  self.add_keyword("ih1")
84  self.add_keyword("ih2")
85  self.add_keyword("itmx1")
86  self.add_keyword("itmx1btl")
87  self.add_keyword("itmx1btlbrn")
88  self.add_keyword("itmx1rm")
89  self.add_keyword("itmx2", 6)
90  self.add_keyword("itmx2btl")
91  self.add_keyword("itmx2btlbrn")
92  self.add_keyword("itmx2rm")
93  self.add_keyword("iupperfsr")
94  self.add_keyword("iupperisr")
95  self.add_keyword("iymax")
96  self.add_keyword("lhans1", self.default_PDFs)
97  self.add_keyword("lhans2", self.default_PDFs)
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")
107  self.add_keyword("mint_density_map")
108  self.add_keyword("mintupbratlim")
109  self.add_keyword("MSbarscheme")
110  self.add_keyword("ncall1", 120000)
111  self.add_keyword("ncall1btl")
112  self.add_keyword("ncall1btlbrn")
113  self.add_keyword("ncall1rm")
114  self.add_keyword("ncall2", 180000)
115  self.add_keyword("ncall2btl")
116  self.add_keyword("ncall2btlbrn")
117  self.add_keyword("ncall2rm")
118  self.add_keyword("ncallfrominput")
119  self.add_keyword("noevents")
120  self.add_keyword("nores")
121  self.add_keyword("novirtual")
122  self.add_keyword("nubound", 100000)
123  self.add_keyword("olpreset")
124  self.add_keyword("olverbose")
125  self.add_keyword("openloops-stability")
126  self.add_keyword("openloopsreal")
127  self.add_keyword("openloopsvirtual")
128  self.add_keyword("par_2gsupp")
129  self.add_keyword("par_diexp")
130  self.add_keyword("par_dijexp")
131  self.add_keyword("parallelstage")
132  self.add_keyword("pdfreweight")
133  self.add_keyword("ptsqmin")
134  self.add_keyword("ptsupp")
135  self.add_keyword("radregion")
136  self.add_keyword("rand1")
137  self.add_keyword("rand2")
138  self.add_keyword("regridfix")
139  self.add_keyword("renscfact", self.default_scales[1])
140  self.add_keyword("rwl_add")
141  self.add_keyword("rwl_file")
142  self.add_keyword("rwl_format_rwgt")
143  self.add_keyword("rwl_group_events")
144  self.add_keyword("smartsig")
145  self.add_keyword("softmismch")
146  self.add_keyword("softonly")
147  self.add_keyword("softtest")
148  self.add_keyword("stage2init")
149  self.add_keyword("storeinfo_rwgt")
150  self.add_keyword("storemintupb")
151  self.add_keyword("testplots")
152  self.add_keyword("testsuda")
153  self.add_keyword("tmass_phsp")
154  self.add_keyword("tmass")
155  self.add_keyword("twidth",-1)
156  self.add_keyword("twidth_phsp",-1)
157  self.add_keyword("ubexcess_correct")
158  self.add_keyword("ubsigmadetails", -1) # disable cross-section output to avoid Fortran crash
159  self.add_keyword("use-old-grid")
160  self.add_keyword("use-old-ubound")
161  self.add_keyword("user_reshists_sep")
162  self.add_keyword("verytinypars")
163  self.add_keyword("virtonly")
164  self.add_keyword("whichpwhgevent")
165  self.add_keyword("withbtilde")
166  self.add_keyword("withdamp", 1)
167  self.add_keyword("withnegweights")
168  self.add_keyword("withremnants")
169  self.add_keyword("withsubtr")
170  self.add_keyword("wmass")
171  self.add_keyword("wwidth")
172  self.add_keyword("xgriditeration")
173  self.add_keyword("xupbound", 2)
174  self.add_keyword("zerowidth")
175  self.add_keyword("zmass")
176  self.add_keyword("zwidth")
177  self.add_keyword("channel", self.allowed_decay_modes[7], name="decay_mode")
178 
179  def validate_decays(self):
180  """! Validate decay_mode keyword."""
181  self.expose() # convenience call to simplify syntax
182  if self.decay_mode not in self.allowed_decay_modes:
183  logger.warning("Decay mode {} not recognised!".format(self.decay_mode))
184  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode))
185  # Calculate appropriate decay mode numbers
186 
187  __decay_mode_lookup = {"b mu+ vmu b~ e- ve~" : 0, "b e+ ve b~ mu- vmu~" : 1, "b emu+ vemu b~ emu- vemu~" : 2,\
188  "b tau+ vtau b~ e- ve~" : 3, "b e+ ve b~ tau- vtau~" : 4, \
189  "b mu+ vmu b~ tau- vtau~" : 5, "b tau+ vtau b~ mu- vmu~" : 6, "b l+ vl b~ l- vl~" : 7}
190  self.parameters_by_keyword("channel")[0].value = __decay_mode_lookup[self.decay_mode]
python.processes.powheg.bblvlv.bblvlv
Default Powheg configuration for top pair and Wt production including non-resonant and interference e...
Definition: bblvlv.py:11
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.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.bblvlv.bblvlv.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: bblvlv.py:34
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.bblvlv.bblvlv.validate_decays
def validate_decays(self)
Validate decay_mode keyword.
Definition: bblvlv.py:179
python.processes.powheg_base.PowhegBase.default_PDFs
def default_PDFs(self)
Default PDFs for this process.
Definition: powheg_base.py:241
python.processes.powheg.bblvlv.bblvlv.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: bblvlv.py:19
python.processes.powheg_base.PowhegBase.manually_set_openloops_paths
def manually_set_openloops_paths(self)
Definition: powheg_base.py:58
python.processes.powheg_RES.PowhegRES
Base class for PowhegBox RES processes.
Definition: powheg_RES.py:7