ATLAS Offline Software
bblvlv_Beta.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_Beta import PowhegBeta
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_Beta, 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 
39 
40 
41  # Add all keywords for this process, overriding defaults if required
42  self.add_keyword("allrad", 1)
43  self.add_keyword("alpha")
44  self.add_keyword("bmass")
45  self.add_keyword("bornktmin")
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("chklimseed")
62  self.add_keyword("clobberlhe")
63  self.add_keyword("colltest")
64  self.add_keyword("complexGFermi")
65  self.add_keyword("compress_lhe")
66  self.add_keyword("compress_upb")
67  self.add_keyword("compute_rwgt")
68  self.add_keyword("dontAdaptWind")
69  self.add_keyword("doublefsr")
70  self.add_keyword("enhancereg")
71  self.add_keyword("evenmaxrat")
72  self.add_keyword("ewscheme")
73  self.add_keyword("facscfact", self.default_scales[0])
74  self.add_keyword("fastbtlbound")
75  self.add_keyword("fixedscale")
76  self.add_keyword("flg_debug")
77  self.add_keyword("foldcsi", 2)
78  self.add_keyword("foldphi", 5)
79  self.add_keyword("foldy", 5)
80  self.add_keyword("for_reweighting")
81  self.add_keyword("fourToFiveMatch",1)
82  self.add_keyword("fourToFiveMatchAS",0)
83  self.add_keyword("fullrwgt")
84  self.add_keyword("hdamp", 172.5)
85  self.add_keyword("hfact")
86  self.add_keyword("hmass")
87  self.add_keyword("hwidth")
88  self.add_keyword("icsimax")
89  self.add_keyword("ih1")
90  self.add_keyword("ih2")
91  self.add_keyword("itmx1")
92  self.add_keyword("itmx1btl")
93  self.add_keyword("itmx1btlbrn")
94  self.add_keyword("itmx1rm")
95  self.add_keyword("itmx2", 6)
96  self.add_keyword("itmx2btl")
97  self.add_keyword("itmx2btlbrn")
98  self.add_keyword("itmx2rm")
99  self.add_keyword("iupperfsr")
100  self.add_keyword("iupperisr")
101  self.add_keyword("iymax")
102  self.add_keyword("lhefuborn")
103  self.add_keyword("lhans1", self.default_PDFs)
104  self.add_keyword("lhans2", self.default_PDFs)
105  self.add_keyword("lhrwgt_descr")
106  self.add_keyword("lhrwgt_group_combine")
107  self.add_keyword("lhrwgt_group_name")
108  self.add_keyword("lhrwgt_id")
109  self.add_keyword("LOevents")
110  self.add_keyword("manyseeds")
111  self.add_keyword("max_io_bufsize")
112  self.add_keyword("maxseeds")
113  self.add_keyword("minlo")
114  self.add_keyword("mint_density_map")
115  self.add_keyword("mintupbratlim")
116  self.add_keyword("ncall1", 120000)
117  self.add_keyword("ncall1btl")
118  self.add_keyword("ncall1btlbrn")
119  self.add_keyword("ncall1rm")
120  self.add_keyword("ncall2", 180000)
121  self.add_keyword("ncall2btl")
122  self.add_keyword("ncall2btlbrn")
123  self.add_keyword("ncall2rm")
124  self.add_keyword("ncallfrominput")
125  self.add_keyword("noevents")
126  self.add_keyword("nores")
127  self.add_keyword("novirtual")
128  self.add_keyword("nubound", 100000)
129  self.add_keyword("olpreset")
130  self.add_keyword("olverbose")
131  self.add_keyword("openloops-stability")
132  self.add_keyword("openloopsreal")
133  self.add_keyword("openloopsvirtual")
134  self.add_keyword("par_2gsupp")
135  self.add_keyword("par_diexp")
136  self.add_keyword("par_dijexp")
137  self.add_keyword("parallelstage")
138  self.add_keyword("pdfreweight")
139  self.add_keyword("ptsqmin")
140  self.add_keyword("ptsupp")
141  self.add_keyword("radregion")
142  self.add_keyword("rand1")
143  self.add_keyword("rand2")
144  self.add_keyword("regridfix")
145  self.add_keyword("renscfact", self.default_scales[1])
146  self.add_keyword("RHWithSingleTops")
147  self.add_keyword("RHStrategy")
148  self.add_keyword("rwl_add")
149  self.add_keyword("rwl_file")
150  self.add_keyword("rwl_format_rwgt")
151  self.add_keyword("rwl_group_events")
152  self.add_keyword("smartsig")
153  self.add_keyword("softmismch")
154  self.add_keyword("softonly")
155  self.add_keyword("softtest")
156  self.add_keyword("stage2init")
157  self.add_keyword("storeinfo_rwgt")
158  self.add_keyword("storemintupb")
159  self.add_keyword("st_nlight_default",5)
160  self.add_keyword("st_nlight_as",5)
161  self.add_keyword("st_nlight_ssv",4)
162  self.add_keyword("testplots")
163  self.add_keyword("testsuda")
164  self.add_keyword("tmass_phsp")
165  self.add_keyword("tmass")
166  self.add_keyword("twidth")
167  self.add_keyword("twidth_phsp")
168  self.add_keyword("ubexcess_correct")
169  self.add_keyword("ubsigmadetails", -1) # disable cross-section output to avoid Fortran crash
170  self.add_keyword("use-old-grid")
171  self.add_keyword("use-old-ubound")
172  self.add_keyword("user_reshists_sep")
173  self.add_keyword("verytinypars")
174  self.add_keyword("virtonly")
175  self.add_keyword("whichpwhgevent")
176  self.add_keyword("whichW")
177  self.add_keyword("width_correction")
178  self.add_keyword("withbtilde")
179  self.add_keyword("withdamp", 1)
180  self.add_keyword("withnegweights")
181  self.add_keyword("withremnants")
182  self.add_keyword("withsubtr")
183  self.add_keyword("wmass")
184  self.add_keyword("wwidth")
185  self.add_keyword("xgriditeration")
186  self.add_keyword("xupbound", 2)
187  self.add_keyword("zerowidth")
188  self.add_keyword("zmass")
189  self.add_keyword("zwidth")
190  self.add_keyword("channel", self.allowed_decay_modes[7], name="decay_mode")
191 
192  def validate_decays(self):
193  """! Validate decay_mode keyword."""
194  self.expose() # convenience call to simplify syntax
195  if self.decay_mode not in self.allowed_decay_modes:
196  logger.warning("Decay mode {} not recognised!".format(self.decay_mode))
197  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode))
198  # Calculate appropriate decay mode numbers
199 
200  __decay_mode_lookup = {"b mu+ vmu b~ e- ve~" : 0, "b e+ ve b~ mu- vmu~" : 1, "b emu+ vemu b~ emu- vemu~" : 2,\
201  "b tau+ vtau b~ e- ve~" : 3, "b e+ ve b~ tau- vtau~" : 4, \
202  "b mu+ vmu b~ tau- vtau~" : 5, "b tau+ vtau b~ mu- vmu~" : 6, "b l+ vl b~ l- vl~" : 7}
203  self.parameters_by_keyword("channel")[0].value = __decay_mode_lookup[self.decay_mode]
python.processes.configurable.Configurable.expose
def expose(self)
Add all names to the interface of this object.
Definition: configurable.py:46
python.processes.powheg_Beta.PowhegBeta
Base class for PowhegBox RES processes.
Definition: powheg_Beta.py:7
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
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_Beta.bblvlv_Beta.validate_decays
def validate_decays(self)
Validate decay_mode keyword.
Definition: bblvlv_Beta.py:192
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_Beta.bblvlv_Beta
Default Powheg configuration for top pair and Wt production including non-resonant and interference e...
Definition: bblvlv_Beta.py:11
python.processes.powheg.bblvlv_Beta.bblvlv_Beta.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: bblvlv_Beta.py:34
python.processes.powheg_base.PowhegBase.manually_set_openloops_paths
def manually_set_openloops_paths(self)
Definition: powheg_base.py:58
python.processes.powheg.bblvlv_Beta.bblvlv_Beta.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: bblvlv_Beta.py:19