ATLAS Offline Software
Zj.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 ..external import ExternalNNLOReweighter
5 from ..powheg_V2 import PowhegV2
6 import os
7 
8 
9 logger = Logging.logging.getLogger("PowhegControl")
10 
11 
12 class Zj(PowhegV2):
13  """! Default Powheg configuration for single Z-boson production plus one jet.
14 
15  Create a configurable object with all applicable Powheg options.
16 
17  @author James Robinson <james.robinson@cern.ch>
18  """
19 
20  def __init__(self, base_directory, **kwargs):
21  """! Constructor: all process options are set here.
22 
23  @param base_directory: path to PowhegBox code.
24  @param kwargs dictionary of arguments from Generate_tf.
25  """
26  super(Zj, self).__init__(base_directory, "Zj", **kwargs)
27 
28  # Add algorithms to the sequence
29  self.add_algorithm(ExternalNNLOReweighter(os.path.split(self.executable)[0], "DYNNLOPS", "ZNNLOPS", "Reweighter", "minnlo"))
30 
31  # Add parameter validation functions
32  self.validation_functions.append("validate_decays")
33 
34 
35  self.allowed_decay_modes = ["z > e+ e-", "z > mu+ mu-", "z > tau+ tau-", "z > b b~"]
36 
37  # Add all keywords for this process, overriding defaults if required
38  self.add_keyword("alphaem")
39  self.add_keyword("bornktmin", 5.0)
40  self.add_keyword("bornonly")
41  self.add_keyword("bornsuppfact")
42  self.add_keyword("bornzerodamp")
43  self.add_keyword("bottomthr")
44  self.add_keyword("bottomthrpdf")
45  self.add_keyword("btildeborn")
46  self.add_keyword("btildecoll")
47  self.add_keyword("btildereal")
48  self.add_keyword("btildevirt")
49  self.add_keyword("btlscalect")
50  self.add_keyword("btlscalereal")
51  self.add_keyword("charmthr")
52  self.add_keyword("charmthrpdf")
53  self.add_keyword("check_bad_st1")
54  self.add_keyword("check_bad_st2")
55  self.add_keyword("clobberlhe")
56  self.add_keyword("colltest")
57  self.add_keyword("compress_lhe")
58  self.add_keyword("compress_upb")
59  self.add_keyword("compute_rwgt")
60  self.add_keyword("doublefsr")
61  self.add_keyword("evenmaxrat")
62  self.add_keyword("facscfact", self.default_scales[0])
63  self.add_keyword("factsc2min")
64  self.add_keyword("fastbtlbound")
65  self.add_keyword("fixedgrid")
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("frensc2min")
71  self.add_keyword("fullrwgt")
72  self.add_keyword("fullrwgtmode")
73  self.add_keyword("hdamp")
74  self.add_keyword("hfact")
75  self.add_keyword("icsimax")
76  self.add_keyword("ih1")
77  self.add_keyword("ih2")
78  self.add_keyword("itmx1", 5)
79  self.add_keyword("itmx1rm")
80  self.add_keyword("itmx2", 5)
81  self.add_keyword("itmx2rm")
82  self.add_keyword("iupperfsr")
83  self.add_keyword("iupperisr")
84  self.add_keyword("iymax")
85  self.add_keyword("lhans1", self.default_PDFs)
86  self.add_keyword("lhans2", self.default_PDFs)
87  self.add_keyword("lhapdf6maxsets")
88  self.add_keyword("lhfm/emass")
89  self.add_keyword("lhfm/mumass")
90  self.add_keyword("lhfm/taumass")
91  self.add_keyword("lhrwgt_descr")
92  self.add_keyword("lhrwgt_group_combine")
93  self.add_keyword("lhrwgt_group_name")
94  self.add_keyword("lhrwgt_id")
95  self.add_keyword("LOevents")
96  self.add_keyword("manyseeds")
97  self.add_keyword("max_io_bufsize")
98  self.add_keyword("max_Z_mass", 2.0 * list(self.parameters_by_name("beam_energy"))[0].value)
99  self.add_keyword("maxseeds")
100  self.add_keyword("min_Z_mass", 60.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", 20000)
106  self.add_keyword("ncall1rm")
107  self.add_keyword("ncall2", 70000)
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", 10000)
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("par_fsrtinycsi")
118  self.add_keyword("par_fsrtinyy")
119  self.add_keyword("par_isrtinycsi")
120  self.add_keyword("par_isrtinyy")
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")
130  self.add_keyword("rwl_add")
131  self.add_keyword("rwl_file")
132  self.add_keyword("rwl_format_rwgt")
133  self.add_keyword("rwl_group_events")
134  self.add_keyword("skipextratests")
135  self.add_keyword("smartsig")
136  self.add_keyword("softtest")
137  self.add_keyword("stage2init")
138  self.add_keyword("sthw2")
139  self.add_keyword("storeinfo_rwgt")
140  self.add_keyword("storemintupb")
141  self.add_keyword("sudscalevar")
142  self.add_keyword("testplots")
143  self.add_keyword("testsuda")
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("vdecaymode", self.allowed_decay_modes[0], name="decay_mode")
149  self.add_keyword("withdamp")
150  self.add_keyword("withnegweights")
151  self.add_keyword("withsubtr")
152  self.add_keyword("Wmass")
153  self.add_keyword("Wwidth")
154  self.add_keyword("xgriditeration")
155  self.add_keyword("xupbound", 20)
156  self.add_keyword("ZbbNLO")
157  self.add_keyword("Zmass")
158  self.add_keyword("Zwidth")
159 
160  def validate_decays(self):
161  """! Validate vdecaymode keyword."""
162  self.expose() # convenience call to simplify syntax
163  self.check_decay_mode(self.decay_mode, self.allowed_decay_modes)
164  # Calculate appropriate decay mode numbers
165  __decay_mode_lookup = {"b b~": 5, "e+ e-": 1, "mu+ mu-": 2, "tau+ tau-": 3}
166  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
python.processes.powheg_base.PowhegBase.add_algorithm
def add_algorithm(self, alg_or_process)
Add an algorithm or external process to the sequence.
Definition: powheg_base.py:208
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.Zj.Zj
Default Powheg configuration for single Z-boson production plus one jet.
Definition: Zj.py:12
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.Zj.Zj.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: Zj.py:20
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.external.external_nnlo_reweighter.ExternalNNLOReweighter
Class for running external NNLO reweighting process.
Definition: external_nnlo_reweighter.py:11
python.processes.powheg.Zj.Zj.validate_decays
def validate_decays(self)
Validate vdecaymode keyword.
Definition: Zj.py:160
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_base.PowhegBase.executable
executable
Powheg executable that will be used.
Definition: powheg_base.py:154
python.processes.powheg.Zj.Zj.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: Zj.py:35
Trk::split
@ split
Definition: LayerMaterialProperties.h:38