ATLAS Offline Software
WWj.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 WWj(PowhegV2):
11  """! Default Powheg configuration for W-boson pair production plus one jet.
12 
13  Create a configurable object with all applicable Powheg options.
14 
15  @author Timoth\'ee Theveneaux-Pelzer <tpelzer@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(WWj, self).__init__(base_directory, "WWJ", **kwargs)
25 
26  # Add parameter validation functions
27  self.validation_functions.append("validate_decays")
28 
29 
30  self.allowed_decay_modes = ["w+ w- > e+ ve e- ve~",
31  "w+ w- > mu+ vm mu- vm~",
32  "w+ w- > tau+ vt tau- vt~",
33  "w+ w- > e+ ve mu- vm~ / mu+ vm e- ve~",
34  "w+ w- > l+ vl l'- vl'~",
35  "w+ w- > l+ vl j j / j j l- vl~",
36  "w+ w- > e+ ve j j / j j e- ve~ / mu+ vmu j j / j j mu- vmu~",
37  "w+ w- > j j j j",
38  "w+ w- > e+ ve mu- vm~",
39  "w+ w- > mu+ vm e- ve~"]
40 
41  # Add all keywords for this process, overriding defaults if required
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("clobberlhe")
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("delg1_g")
64  self.add_keyword("delg1_z")
65  self.add_keyword("delk_g")
66  self.add_keyword("delk_z")
67  self.add_keyword("doublefsr")
68  self.add_keyword("dronly")
69  self.add_keyword("evenmaxrat")
70  self.add_keyword("facscfact", self.default_scales[0])
71  self.add_keyword("fastbtlbound")
72  self.add_keyword("fixedgrid")
73  self.add_keyword("fixedscale")
74  self.add_keyword("flg_debug")
75  self.add_keyword("foldcsi")
76  self.add_keyword("foldphi")
77  self.add_keyword("foldy")
78  self.add_keyword("fullrwgt")
79  self.add_keyword("fullrwgtmode")
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", 4)
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("lambda_g")
93  self.add_keyword("lambda_z")
94  self.add_keyword("lhans1", self.default_PDFs)
95  self.add_keyword("lhans2", self.default_PDFs)
96  self.add_keyword("lhapdf6maxsets")
97  self.add_keyword("lhrwgt_descr")
98  self.add_keyword("lhrwgt_group_combine")
99  self.add_keyword("lhrwgt_group_name")
100  self.add_keyword("lhrwgt_id")
101  self.add_keyword("LOevents")
102  self.add_keyword("manyseeds")
103  self.add_keyword("max_io_bufsize")
104  self.add_keyword("maxseeds")
105  self.add_keyword("minlo")
106  self.add_keyword("mintupbratlim")
107  self.add_keyword("mintupbxless")
108  self.add_keyword("ncall1", 40000)
109  self.add_keyword("ncall1rm")
110  self.add_keyword("ncall2", 80000)
111  self.add_keyword("ncall2rm")
112  self.add_keyword("ncallfrominput")
113  self.add_keyword("noevents")
114  self.add_keyword("novirtual")
115  self.add_keyword("nubound", 30000)
116  self.add_keyword("nnlops")
117  self.add_keyword("olddij")
118  self.add_keyword("par_2gsupp")
119  self.add_keyword("par_diexp")
120  self.add_keyword("par_dijexp")
121  self.add_keyword("parallelstage")
122  self.add_keyword("pdfreweight")
123  self.add_keyword("ptsqmin")
124  self.add_keyword("ptsupp")
125  self.add_keyword("radregion")
126  self.add_keyword("rand1")
127  self.add_keyword("rand2")
128  self.add_keyword("renscfact", self.default_scales[1])
129  self.add_keyword("runningscales") # 0 = fixed scale 2m(W), 1=m(WW), 2=mT(W+) + mT(W-)
130  self.add_keyword("runningwidth")
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("storeinfo_rwgt")
140  self.add_keyword("storemintupb")
141  self.add_keyword("testplots")
142  self.add_keyword("testsuda")
143  self.add_keyword("tevscale")
144  self.add_keyword("ubexcess_correct")
145  self.add_keyword("ubsigmadetails")
146  self.add_keyword("use-old-grid")
147  self.add_keyword("use-old-ubound")
148  self.add_keyword("withdamp")
149  self.add_keyword("withnegweights")
150  self.add_keyword("withsubtr")
151  self.add_keyword("e+e-")
152  self.add_keyword("mu+mu-")
153  self.add_keyword("tau+tau-")
154  self.add_keyword("leptonic_notau")
155  self.add_keyword("leptonic")
156  self.add_keyword("hadronic")
157  self.add_keyword("semileptonic", "w+ w- > l+ vl l'- vl'~", name="decay_mode", hidden=False)
158  self.add_keyword("semileptonic_notau")
159  self.add_keyword("e+mu-")
160  self.add_keyword("mu+e-")
161  self.add_keyword("xgriditeration")
162  self.add_keyword("xupbound")
163  self.add_keyword("zerowidth")
164 
165  def validate_decays(self):
166  """! Validate the various decay mode keywords."""
167  self.expose() # convenience call to simplify syntax
168  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
169  # Enable appropriate decay mode
170  list(self.parameters_by_keyword("semileptonic"))[0].value = 0 # disable the one used as a proxy for decay mode
171  __decay_mode_lookup = { "w+ w- > e+ ve e- ve~": "e+e-",
172  "w+ w- > mu+ vm mu- vm~": "mu+mu-",
173  "w+ w- > tau+ vt tau- vt~": "tau+tau-",
174  "w+ w- > e+ ve mu- vm~ / mu+ vm e- ve~": "leptonic_notau",
175  "w+ w- > l+ vl l'- vl'~": "leptonic",
176  "w+ w- > l+ vl j j / j j l- vl~": "hadronic",
177  "w+ w- > e+ ve j j / j j e- ve~ / mu+ vmu j j / j j mu- vmu~": "semileptonic",
178  "w+ w- > j j j j": "semileptonic_notau",
179  "w+ w- > e+ ve mu- vm~": "e+mu-",
180  "w+ w- > mu+ vm e- ve~": "mu+e-"}
181 
182  list(self.parameters_by_keyword(__decay_mode_lookup[self.decay_mode]))[0].value = 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.WWj.WWj.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: WWj.py:18
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.WWj.WWj.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: WWj.py:30
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
python.processes.powheg.WWj.WWj.validate_decays
def validate_decays(self)
Validate the various decay mode keywords.
Definition: WWj.py:165
python.processes.powheg.WWj.WWj
Default Powheg configuration for W-boson pair production plus one jet.
Definition: WWj.py:10