ATLAS Offline Software
ttH.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 ttH(PowhegV2):
11  """! Default Powheg configuration for Higgs boson production in association with top quarks.
12 
13  Create a configurable object with all applicable Powheg options.
14 
15  @author James Robinson <james.robinson@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(ttH, self).__init__(base_directory, "ttH", **kwargs)
25 
26  # Add parameter validation functions
27  self.validation_functions.append("validate_decays")
28 
29 
30  self.allowed_decay_modes = ["t t~ > all", "t t~ > b j j b~ j j", "t t~ > b l+ vl b~ l- vl~", "t t~ > b emu+ vemu b~ emu- vemu~", "t t~ > semileptonic"]
31 
32  # Add all keywords for this process, overriding defaults if required
33  self.add_keyword("bornktmin")
34  self.add_keyword("bornonly")
35  self.add_keyword("bornsuppfact")
36  self.add_keyword("bornzerodamp")
37  self.add_keyword("bottomthr")
38  self.add_keyword("bottomthrpdf")
39  self.add_keyword("btildeborn")
40  self.add_keyword("btildecoll")
41  self.add_keyword("btildereal")
42  self.add_keyword("btildevirt")
43  self.add_keyword("btlscalect")
44  self.add_keyword("btlscalereal")
45  self.add_keyword("charmthr")
46  self.add_keyword("charmthrpdf")
47  self.add_keyword("check_bad_st1")
48  self.add_keyword("check_bad_st2")
49  self.add_keyword("clobberlhe")
50  self.add_keyword("colltest")
51  self.add_keyword("compute_rwgt")
52  self.add_keyword("delta_mttmin")
53  self.add_keyword("doublefsr")
54  self.add_keyword("elbranching")
55  self.add_keyword("evenmaxrat")
56  self.add_keyword("facscfact", self.default_scales[0])
57  self.add_keyword("fakevirt")
58  self.add_keyword("fastbtlbound")
59  self.add_keyword("fixedgrid")
60  self.add_keyword("flg_debug")
61  self.add_keyword("foldcsi")
62  self.add_keyword("foldphi")
63  self.add_keyword("foldy")
64  self.add_keyword("fullrwgtmode")
65  self.add_keyword("hdamp")
66  self.add_keyword("hdecaymode")
67  self.add_keyword("hfact")
68  self.add_keyword("hmass")
69  self.add_keyword("hwidth")
70  self.add_keyword("icsimax")
71  self.add_keyword("ih1")
72  self.add_keyword("ih2")
73  self.add_keyword("itmx1", 3)
74  self.add_keyword("itmx1rm")
75  self.add_keyword("itmx2", 6)
76  self.add_keyword("itmx2rm")
77  self.add_keyword("iupperfsr")
78  self.add_keyword("iupperisr")
79  self.add_keyword("iymax")
80  self.add_keyword("lhans1", self.default_PDFs)
81  self.add_keyword("lhans2", self.default_PDFs)
82  self.add_keyword("lhrwgt_descr")
83  self.add_keyword("lhrwgt_group_combine")
84  self.add_keyword("lhrwgt_group_name")
85  self.add_keyword("lhrwgt_id")
86  self.add_keyword("LOevents")
87  self.add_keyword("max_io_bufsize")
88  self.add_keyword("manyseeds")
89  self.add_keyword("minlo")
90  self.add_keyword("ncall1", 10000)
91  self.add_keyword("ncall1rm")
92  self.add_keyword("ncall2", 20000)
93  self.add_keyword("ncall2rm")
94  self.add_keyword("ncallfrominput")
95  self.add_keyword("noevents")
96  self.add_keyword("novirtual")
97  self.add_keyword("nubound", 60000)
98  self.add_keyword("olddij")
99  self.add_keyword("par_2gsupp")
100  self.add_keyword("par_diexp")
101  self.add_keyword("par_dijexp")
102  self.add_keyword("parallelstage")
103  self.add_keyword("pdfreweight")
104  self.add_keyword("ptsqmin")
105  self.add_keyword("ptsupp")
106  self.add_keyword("radregion")
107  self.add_keyword("rand1")
108  self.add_keyword("rand2")
109  self.add_keyword("renscfact", self.default_scales[1])
110  self.add_keyword("runningscales")
111  self.add_keyword("rwl_add")
112  self.add_keyword("rwl_file")
113  self.add_keyword("rwl_format_rwgt")
114  self.add_keyword("rwl_group_events")
115  self.add_keyword("semileptonic", hidden=True)
116  self.add_keyword("smartsig")
117  self.add_keyword("softtest")
118  self.add_keyword("stage2init")
119  self.add_keyword("storeinfo_rwgt")
120  self.add_keyword("storemintupb")
121  self.add_keyword("testplots")
122  self.add_keyword("testsuda")
123  self.add_keyword("topdecaymode", self.allowed_decay_modes[0], name="decay_mode")
124  self.add_keyword("ubsigmadetails")
125  self.add_keyword("use-old-grid")
126  self.add_keyword("use-old-ubound")
127  self.add_keyword("withdamp")
128  self.add_keyword("withnegweights")
129  self.add_keyword("withsubtr")
130  self.add_keyword("xgriditeration")
131  self.add_keyword("xupbound", 4)
132  self.add_keyword("zerowidth")
133 
134  def validate_decays(self):
135  """! Validate semileptonic and topdecaymode keywords."""
136  self.expose() # convenience call to simplify syntax
137  if self.decay_mode not in self.allowed_decay_modes:
138  logger.warning("Decay mode {} not recognised!".format(self.decay_mode))
139  raise ValueError("Decay mode {} not recognised!".format(self.decay_mode))
140  # Calculate appropriate decay mode numbers
141  __decay_mode_lookup = {"t t~ > all": "22222", "t t~ > b j j b~ j j": "00022", "t t~ > b l+ vl b~ l- vl~": "22200", "t t~ > b emu+ vemu b~ emu- vemu~": "22000", "t t~ > semileptonic": "11111"}
142  list(self.parameters_by_keyword("topdecaymode"))[0].value = __decay_mode_lookup[self.decay_mode]
143  if self.decay_mode == "semileptonic":
144  list(self.parameters_by_keyword("semileptonic"))[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.ttH.ttH.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: ttH.py:30
vtune_athena.format
format
Definition: vtune_athena.py:14
python.processes.powheg.ttH.ttH.validate_decays
def validate_decays(self)
Validate semileptonic and topdecaymode keywords.
Definition: ttH.py:134
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_base.PowhegBase.validation_functions
validation_functions
List of validation functions to run before preparing runcard.
Definition: powheg_base.py:179
python.processes.powheg.ttH.ttH
Default Powheg configuration for Higgs boson production in association with top quarks.
Definition: ttH.py:10
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.processes.powheg.ttH.ttH.decay_mode
decay_mode
Definition: ttH.py:143
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.ttH.ttH.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ttH.py:18