ATLAS Offline Software
HWj_EW.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_RES import PowhegRES
5 
6 
7 logger = Logging.logging.getLogger("PowhegControl")
8 
9 
11  """! Default Powheg configuration for associated Higgs boson and W-boson production plus one jet, with electroweak and quark mass effects.
12 
13  Create a configurable object with all applicable Powheg options.
14  @author James Robinson <james.robinson@cern.ch>
15  """
16 
17  def __init__(self, base_directory, **kwargs):
18  """! Constructor: all process options are set here.
19 
20  @param base_directory path to PowhegBox code.
21  @param kwargs dictionary of arguments from Generate_tf.
22  """
23  super(HWj_EW, self).__init__(base_directory, "HWJ_ew", **kwargs)
24 
25 
26  self.allowed_decay_modes = ["w+ > e+ ve", "w- > e- ve~", "w+ > mu+ vm", "w- > mu- vm~", "w+ > tau+ vt",
27  "w- > tau- vt~", "w+ > j j", "w- > j j", "w+ > l+ vl", "w- > l- vl~", "w+ > all",
28  "w- > all"]
29 
30  # Add all keywords for this process, overriding defaults if required
31  self.add_keyword("allrad", 1)
32  self.add_keyword("alphaem")
33  self.add_keyword("bmass")
34  self.add_keyword("bornktmin", 0.26)
35  self.add_keyword("bornonly")
36  self.add_keyword("bornsuppfact", 0.0)
37  self.add_keyword("bornsuppfactV", 700.0)
38  self.add_keyword("bornzerodamp")
39  self.add_keyword("bottomthr")
40  self.add_keyword("bottomthrpdf")
41  self.add_keyword("btildeborn")
42  self.add_keyword("btildecoll")
43  self.add_keyword("btildereal")
44  self.add_keyword("btildevirt")
45  self.add_keyword("btlscalect")
46  self.add_keyword("btlscalereal")
47  self.add_keyword("charmthr")
48  self.add_keyword("charmthrpdf")
49  self.add_keyword("check_bad_st1")
50  self.add_keyword("check_bad_st2")
51  self.add_keyword("chklimseed")
52  self.add_keyword("CKM_diagonal")
53  self.add_keyword("clobberlhe")
54  self.add_keyword("colltest")
55  self.add_keyword("comparison_paper")
56  self.add_keyword("compress_lhe")
57  self.add_keyword("compress_upb")
58  self.add_keyword("compute_rwgt")
59  self.add_keyword("doublefsr")
60  self.add_keyword("enhancereg")
61  self.add_keyword("evenmaxrat")
62  self.add_keyword("ew_renorm_scheme")
63  self.add_keyword("facscfact", self.default_scales[0])
64  self.add_keyword("factsc2min")
65  self.add_keyword("fastbtlbound")
66  self.add_keyword("flg_debug")
67  self.add_keyword("foldcsi", 5)
68  self.add_keyword("foldphi", 5)
69  self.add_keyword("foldy", 5)
70  self.add_keyword("for_reweighting")
71  self.add_keyword("frensc2min")
72  self.add_keyword("fullrwgt")
73  self.add_keyword("hdamp")
74  self.add_keyword("hdecaymode")
75  self.add_keyword("hfact")
76  self.add_keyword("hmass")
77  self.add_keyword("icsimax")
78  self.add_keyword("idvecbos", hidden=True)
79  self.add_keyword("ih1")
80  self.add_keyword("ih2")
81  self.add_keyword("itmx1", 2)
82  self.add_keyword("itmx1btl")
83  self.add_keyword("itmx1btlbrn")
84  self.add_keyword("itmx1reg")
85  self.add_keyword("itmx1rm")
86  self.add_keyword("itmx2", 2)
87  self.add_keyword("itmx2btl")
88  self.add_keyword("itmx2btlbrn")
89  self.add_keyword("itmx2reg")
90  self.add_keyword("itmx2rm")
91  self.add_keyword("iupperfsr")
92  self.add_keyword("iupperisr")
93  self.add_keyword("iymax")
94  self.add_keyword("kappa_ghb")
95  self.add_keyword("kappa_ght")
96  self.add_keyword("kappa_ghw")
97  self.add_keyword("lambdaHHH")
98  self.add_keyword("lhans1", self.default_PDFs)
99  self.add_keyword("lhans2", self.default_PDFs)
100  self.add_keyword("LOevents")
101  self.add_keyword("manyseeds")
102  self.add_keyword("max_h_mass", 2.0 * list(self.parameters_by_name("beam_energy"))[0].value)
103  self.add_keyword("max_io_bufsize")
104  self.add_keyword("max_w_mass", 2.0 * list(self.parameters_by_name("beam_energy"))[0].value)
105  self.add_keyword("maxseeds")
106  self.add_keyword("min_h_mass")
107  self.add_keyword("min_w_mass", 10.0)
108  self.add_keyword("minlo_nnll")
109  self.add_keyword("minlo", 1)
110  self.add_keyword("mint_density_map")
111  self.add_keyword("mintupbratlim", 1000)
112  self.add_keyword("ncall1", 40000)
113  self.add_keyword("ncall1btl")
114  self.add_keyword("ncall1btlbrn")
115  self.add_keyword("ncall1reg")
116  self.add_keyword("ncall1rm")
117  self.add_keyword("ncall2", 400000)
118  self.add_keyword("ncall2btl")
119  self.add_keyword("ncall2btlbrn")
120  self.add_keyword("ncall2reg")
121  self.add_keyword("ncall2rm")
122  self.add_keyword("no_photon_radiation")
123  self.add_keyword("noevents")
124  self.add_keyword("nohad")
125  self.add_keyword("nores")
126  self.add_keyword("novirtual")
127  self.add_keyword("nubound", 400000)
128  self.add_keyword("olpreset")
129  self.add_keyword("olverbose")
130  self.add_keyword("onshellhiggs")
131  self.add_keyword("par_2gsupp")
132  self.add_keyword("par_diexp")
133  self.add_keyword("par_dijexp")
134  self.add_keyword("parallelstage")
135  self.add_keyword("pdfreweight")
136  self.add_keyword("ptsupp")
137  self.add_keyword("qed_qcd")
138  self.add_keyword("radregion")
139  self.add_keyword("raisingscales")
140  self.add_keyword("rand1")
141  self.add_keyword("rand2")
142  self.add_keyword("regridfix")
143  self.add_keyword("renscfact", self.default_scales[1])
144  self.add_keyword("runningscales", 3, description="scale at underlying Born level. [0: mh+mw; 1: Ht; 2: sqrt(pt_l1*pt_l2); 3: sqrt((p_H+p_l1+p_l2)^2)]")
145  self.add_keyword("rwl_add")
146  self.add_keyword("rwl_file")
147  self.add_keyword("rwl_format_rwgt")
148  self.add_keyword("rwl_group_events")
149  self.add_keyword("select_EW_virt")
150  self.add_keyword("shortlist")
151  self.add_keyword("smartsig")
152  self.add_keyword("softmismch")
153  self.add_keyword("softonly")
154  self.add_keyword("softtest")
155  self.add_keyword("stage2init")
156  self.add_keyword("storeinfo_rwgt")
157  self.add_keyword("storemintupb")
158  self.add_keyword("sudscalevar")
159  self.add_keyword("testplots")
160  self.add_keyword("testsuda")
161  self.add_keyword("tmass")
162  self.add_keyword("ubexcess_correct")
163  self.add_keyword("ubsigmadetails", 0) # causes crash if enabled
164  self.add_keyword("use-old-grid")
165  self.add_keyword("use-old-ubound")
166  self.add_keyword("user_reshists_sep")
167  self.add_keyword("vdecaymode", self.allowed_decay_modes[0], name="decay_mode", description="W boson decay mode. [{}]".format("; ".join(self.allowed_decay_modes)))
168  self.add_keyword("virtonly")
169  self.add_keyword("whichpwhgevent")
170  self.add_keyword("withbtilde")
171  self.add_keyword("withdamp")
172  self.add_keyword("withnegweights")
173  self.add_keyword("withregular")
174  self.add_keyword("withremnants")
175  self.add_keyword("withsubtr")
176  self.add_keyword("xgriditeration")
177  self.add_keyword("xupbound", 2)
178  self.add_keyword("zerowidth")
179 
180  # Add parameter validation functions
181  self.validation_functions.append("validate_decays")
182 
183  def validate_decays(self):
184  """! Validate idvecbos and vdecaymode keywords."""
185  self.expose() # convenience call to simplify syntax
186  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
187  # Calculate appropriate decay mode numbers
188  list(self.parameters_by_keyword("idvecbos"))[0].value = 24 * [-1, +1][self.decay_mode.startswith("w+")]
189  __decay_mode_lookup = {"e ve": 1, "mu vm": 2, "tau vt": 3, "j j": 0, "l vl": 11, "all": 10}
190  __decay_mode = self.decay_mode.split("> ")[1].replace("~", "").replace("+", "").replace("-", "")
191  list(self.parameters_by_keyword("vdecaymode"))[0].value = __decay_mode_lookup[__decay_mode]
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.configurable.Configurable.parameters_by_name
def parameters_by_name(self, name)
Retrieve all parameters that use a given name.
Definition: configurable.py:64
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.HWj_EW.HWj_EW.validate_decays
def validate_decays(self)
Validate idvecbos and vdecaymode keywords.
Definition: HWj_EW.py:183
python.processes.powheg.HWj_EW.HWj_EW.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: HWj_EW.py:17
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
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx: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.HWj_EW.HWj_EW.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: HWj_EW.py:26
python.processes.powheg_RES.PowhegRES
Base class for PowhegBox RES processes.
Definition: powheg_RES.py:7
Trk::split
@ split
Definition: LayerMaterialProperties.h:38
python.processes.powheg.HWj_EW.HWj_EW
Default Powheg configuration for associated Higgs boson and W-boson production plus one jet,...
Definition: HWj_EW.py:10