ATLAS Offline Software
HZj.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 HZj(PowhegV2):
11  """! Default Powheg configuration for associated Higgs boson and Z-boson production plus one jet, with 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(HZj, self).__init__(base_directory, "HZJ", **kwargs)
24 
25 
26  self.allowed_decay_modes = ["z > e+ e-", "z > mu+ mu-", "z > tau+ tau-", "z > ve ve~", "z > vm vm~",
27  "z > vt vt~", "z > j j", "z > l l~", "z > v v~", "z > all"]
28 
29  # Add all keywords for this process, overriding defaults if required
30  self.add_keyword("bmass")
31  self.add_keyword("bornktmin", 0.26)
32  self.add_keyword("bornonly")
33  self.add_keyword("bornsuppfact")
34  self.add_keyword("bornsuppfactV")
35  self.add_keyword("bornzerodamp")
36  self.add_keyword("bottomthr")
37  self.add_keyword("bottomthrpdf")
38  self.add_keyword("btildeborn")
39  self.add_keyword("btildecoll")
40  self.add_keyword("btildereal")
41  self.add_keyword("btildevirt")
42  self.add_keyword("btlscalect")
43  self.add_keyword("btlscalereal")
44  self.add_keyword("charmthr")
45  self.add_keyword("charmthrpdf")
46  self.add_keyword("check_bad_st1")
47  self.add_keyword("check_bad_st2")
48  self.add_keyword("clobberlhe")
49  self.add_keyword("colltest")
50  self.add_keyword("complexpolescheme")
51  self.add_keyword("compress_lhe")
52  self.add_keyword("compress_upb")
53  self.add_keyword("compute_rwgt")
54  self.add_keyword("doublefsr", 1)
55  self.add_keyword("evenmaxrat")
56  self.add_keyword("facscfact", self.default_scales[0])
57  self.add_keyword("factsc2min")
58  self.add_keyword("fastbtlbound")
59  self.add_keyword("fixedgrid")
60  self.add_keyword("flg_debug")
61  self.add_keyword("foldcsi", 10)
62  self.add_keyword("foldphi", 5)
63  self.add_keyword("foldy", 5)
64  self.add_keyword("frensc2min")
65  self.add_keyword("fullrwgt")
66  self.add_keyword("fullrwgtmode")
67  self.add_keyword("hdamp")
68  self.add_keyword("hfact")
69  self.add_keyword("hmass")
70  self.add_keyword("hwidth")
71  self.add_keyword("icsimax")
72  self.add_keyword("ih1")
73  self.add_keyword("ih2")
74  self.add_keyword("itmx1", 5)
75  self.add_keyword("itmx1rm")
76  self.add_keyword("itmx2", 5)
77  self.add_keyword("itmx2rm")
78  self.add_keyword("iupperfsr")
79  self.add_keyword("iupperisr")
80  self.add_keyword("iymax")
81  self.add_keyword("kappa_ghb")
82  self.add_keyword("kappa_ght")
83  self.add_keyword("kappa_ghz")
84  self.add_keyword("lhans1", self.default_PDFs)
85  self.add_keyword("lhans2", self.default_PDFs)
86  self.add_keyword("lhapdf6maxsets")
87  self.add_keyword("lhrwgt_descr")
88  self.add_keyword("lhrwgt_group_combine")
89  self.add_keyword("lhrwgt_group_name")
90  self.add_keyword("lhrwgt_id")
91  self.add_keyword("LOevents")
92  self.add_keyword("manyseeds")
93  self.add_keyword("massivebottom")
94  self.add_keyword("massivetop")
95  self.add_keyword("max_h_mass")
96  self.add_keyword("max_z_mass", 2.0 * list(self.parameters_by_name("beam_energy"))[0].value)
97  self.add_keyword("max_io_bufsize")
98  self.add_keyword("maxseeds")
99  self.add_keyword("min_h_mass")
100  self.add_keyword("min_z_mass", 10.0)
101  self.add_keyword("minlo_nnll")
102  self.add_keyword("minlo", 1)
103  self.add_keyword("mintupbratlim")
104  self.add_keyword("mintupbxless")
105  self.add_keyword("ncall1", 70000)
106  self.add_keyword("ncall1rm")
107  self.add_keyword("ncall2", 50000)
108  self.add_keyword("ncall2rm")
109  self.add_keyword("ncallfrominput")
110  self.add_keyword("noevents")
111  self.add_keyword("novirtual")
112  self.add_keyword("nubound", 150000)
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("ptVhigh")
122  self.add_keyword("ptVlow")
123  self.add_keyword("radregion")
124  self.add_keyword("rand1")
125  self.add_keyword("rand2")
126  self.add_keyword("renscfact", self.default_scales[1])
127  self.add_keyword("runningscales")
128  self.add_keyword("rwl_add")
129  self.add_keyword("rwl_file")
130  self.add_keyword("rwl_format_rwgt")
131  self.add_keyword("rwl_group_events")
132  self.add_keyword("smartsig")
133  self.add_keyword("softtest")
134  self.add_keyword("stage2init")
135  self.add_keyword("storeinfo_rwgt")
136  self.add_keyword("storemintupb")
137  self.add_keyword("sudscalevar")
138  self.add_keyword("testplots")
139  self.add_keyword("testsuda")
140  self.add_keyword("tmass")
141  self.add_keyword("ubexcess_correct")
142  self.add_keyword("ubsigmadetails")
143  self.add_keyword("use-old-grid")
144  self.add_keyword("use-old-ubound")
145  self.add_keyword("vdecaymode", self.allowed_decay_modes[0], name="decay_mode", description="Z boson decay mode. [{}]".format("; ".join(self.allowed_decay_modes)))
146  self.add_keyword("Vstep")
147  self.add_keyword("withdamp")
148  self.add_keyword("withnegweights")
149  self.add_keyword("withsubtr")
150  self.add_keyword("xgriditeration")
151  self.add_keyword("xupbound", 20)
152 
153  # Add parameter validation functions
154  self.validation_functions.append("validate_decays")
155 
156  def validate_decays(self):
157  """! Validate idvecbos and vdecaymode keywords."""
158  self.expose() # convenience call to simplify syntax
159  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
160  # Calculate appropriate decay mode numbers
161  __decay_mode_lookup = {"e+ e-": 1, "mu+ mu-": 2, "tau+ tau-": 3, "ve ve~": 4, "vm vm~": 5, "vt vt~": 6,
162  "j j": 0, "l l~": 11, "v v~": 12, "all": 10}
163  list(self.parameters_by_keyword("vdecaymode"))[0].value = __decay_mode_lookup[self.decay_mode.split("> ")[1]]
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
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.HZj.HZj.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: HZj.py:26
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.HZj.HZj.validate_decays
def validate_decays(self)
Validate idvecbos and vdecaymode keywords.
Definition: HZj.py:156
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg.HZj.HZj.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: HZj.py:17
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_V2.PowhegV2
Base class for PowhegBox V2 processes.
Definition: powheg_V2.py:6
python.processes.powheg.HZj.HZj
Default Powheg configuration for associated Higgs boson and Z-boson production plus one jet,...
Definition: HZj.py:10
Trk::split
@ split
Definition: LayerMaterialProperties.h:38