ATLAS Offline Software
ssWWjj.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 import itertools
6 
7 
8 logger = Logging.logging.getLogger("PowhegControl")
9 
10 
12  """! Default Powheg configuration for same-sign W-boson pair plus jet pair production.
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(ssWWjj, self).__init__(base_directory, "Wp_Wp_J_J", **kwargs)
26 
27  # Add parameter validation functions
28  self.validation_functions.append("validate_decays")
29 
30 
31  self.allowed_decay_modes = ["w- w- > {} {}".format(*x) for x in itertools.product(["e- ve~", "mu- vm~", "tau- vt~", "emu- vemu~", "l- vl~"], repeat=2)] +\
32  ["w+ w+ > {} {}".format(*x) for x in itertools.product(["e+ ve", "mu+ vm", "tau+ vt", "emu+ vemu", "l+ vl"], repeat=2)]
33 
34  # Add all keywords for this process, overriding defaults if required
35  self.add_keyword("alphas_from_lhapdf")
36  self.add_keyword("bornktmin", 20.0)
37  self.add_keyword("bornonly")
38  self.add_keyword("bornsuppfact", 100)
39  self.add_keyword("bornzerodamp")
40  self.add_keyword("bottomthr")
41  self.add_keyword("bottomthrpdf")
42  self.add_keyword("btildeborn")
43  self.add_keyword("btildecoll")
44  self.add_keyword("btildereal")
45  self.add_keyword("btildevirt")
46  self.add_keyword("btlscalect")
47  self.add_keyword("btlscalereal")
48  self.add_keyword("charmthr")
49  self.add_keyword("charmthrpdf")
50  self.add_keyword("check_bad_st1")
51  self.add_keyword("check_bad_st2")
52  self.add_keyword("clobberlhe")
53  self.add_keyword("colltest")
54  self.add_keyword("compress_lhe")
55  self.add_keyword("compress_upb")
56  self.add_keyword("compute_rwgt")
57  self.add_keyword("doublefsr")
58  self.add_keyword("evenmaxrat")
59  self.add_keyword("facscfact", self.default_scales[0])
60  self.add_keyword("fakevirt")
61  self.add_keyword("fastbtlbound")
62  self.add_keyword("fixedgrid")
63  self.add_keyword("flg_debug")
64  self.add_keyword("foldcsi")
65  self.add_keyword("foldphi")
66  self.add_keyword("foldy")
67  self.add_keyword("fullrwgt")
68  self.add_keyword("fullrwgtmode")
69  self.add_keyword("hdamp")
70  self.add_keyword("hfact")
71  self.add_keyword("icsimax")
72  self.add_keyword("ih1")
73  self.add_keyword("ih2")
74  self.add_keyword("itmx1")
75  self.add_keyword("itmx1rm")
76  self.add_keyword("itmx2")
77  self.add_keyword("itmx2rm")
78  self.add_keyword("iupperfsr")
79  self.add_keyword("iupperisr")
80  self.add_keyword("iymax")
81  self.add_keyword("lhans1", self.default_PDFs)
82  self.add_keyword("lhans2", self.default_PDFs)
83  self.add_keyword("lhapdf6maxsets")
84  self.add_keyword("lhrwgt_descr")
85  self.add_keyword("lhrwgt_group_combine")
86  self.add_keyword("lhrwgt_group_name")
87  self.add_keyword("lhrwgt_id")
88  self.add_keyword("LOevents")
89  self.add_keyword("manyseeds")
90  self.add_keyword("max_io_bufsize")
91  self.add_keyword("maxseeds")
92  self.add_keyword("minlo")
93  self.add_keyword("mintupbratlim")
94  self.add_keyword("mintupbxless")
95  self.add_keyword("ncall1", 5000)
96  self.add_keyword("ncall1rm")
97  self.add_keyword("ncall2", 5000)
98  self.add_keyword("ncall2rm")
99  self.add_keyword("ncallfrominput")
100  self.add_keyword("noevents")
101  self.add_keyword("novirtual")
102  self.add_keyword("nubound", 5000)
103  self.add_keyword("olddij")
104  self.add_keyword("par_2gsupp")
105  self.add_keyword("par_diexp")
106  self.add_keyword("par_dijexp")
107  self.add_keyword("parallelstage")
108  self.add_keyword("pdfreweight")
109  self.add_keyword("ptsqmin")
110  self.add_keyword("ptsupp")
111  self.add_keyword("radregion")
112  self.add_keyword("rand1")
113  self.add_keyword("rand2")
114  self.add_keyword("renscfact", self.default_scales[1])
115  self.add_keyword("runningscales")
116  self.add_keyword("rwl_add")
117  self.add_keyword("rwl_file")
118  self.add_keyword("rwl_format_rwgt")
119  self.add_keyword("rwl_group_events")
120  self.add_keyword("smartsig")
121  self.add_keyword("smincuts")
122  self.add_keyword("softtest")
123  self.add_keyword("stage2init")
124  self.add_keyword("storeinfo_rwgt")
125  self.add_keyword("storemintupb")
126  self.add_keyword("testplots")
127  self.add_keyword("testsuda")
128  self.add_keyword("ubexcess_correct")
129  self.add_keyword("ubsigmadetails")
130  self.add_keyword("use-old-grid")
131  self.add_keyword("use-old-ubound")
132  self.add_keyword("vdecaymodeW1", self.allowed_decay_modes[0], name="decay_mode")
133  self.add_keyword("vdecaymodeW2", hidden=True)
134  self.add_keyword("withdamp")
135  self.add_keyword("withnegweights")
136  self.add_keyword("withsubtr")
137  self.add_keyword("xgriditeration")
138  self.add_keyword("xupbound", 2)
139  self.add_keyword("zerowidth")
140 
141  def validate_decays(self):
142  """! Validate idvecbos, vdecaymodew1 and vdecaymodew2 keywords."""
143  self.expose() # convenience call to simplify syntax
144  if self.decay_mode not in self.allowed_decay_modes:
145  logger.fatal("Decay mode {} not recognised!".format(self.decay_mode))
146  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode))
147  # Calculate appropriate decay mode numbers
148  __decay_products = [p for p in self.decay_mode.split("> ")[1].split(" ")]
149  __decay_mode_lookup = {"e- ve~": 11, "mu- vm~": 13, "tau- vt~": 15, "emu- vemu~": 113, "l- vl~": 135,
150  "e+ ve": -11, "mu+ vm": -13, "tau+ vt": -15, "emu+ vemu": -113, "l+ vl": -135}
151  list(self.parameters_by_keyword("vdecaymodeW1"))[0].value = __decay_mode_lookup[" ".join(__decay_products[0:2])]
152  list(self.parameters_by_keyword("vdecaymodeW2"))[0].value = __decay_mode_lookup[" ".join(__decay_products[2:4])]
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.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.ssWWjj.ssWWjj
Default Powheg configuration for same-sign W-boson pair plus jet pair production.
Definition: ssWWjj.py:11
python.processes.powheg.ssWWjj.ssWWjj.validate_decays
def validate_decays(self)
Validate idvecbos, vdecaymodew1 and vdecaymodew2 keywords.
Definition: ssWWjj.py:141
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.ssWWjj.ssWWjj.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ssWWjj.py:19
python.processes.powheg_base.PowhegBase.validation_functions
validation_functions
List of validation functions to run before preparing runcard.
Definition: powheg_base.py:179
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.ssWWjj.ssWWjj.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: ssWWjj.py:31
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
Trk::split
@ split
Definition: LayerMaterialProperties.h:38