ATLAS Offline Software
DMV.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 DMV(PowhegV2):
11  """! Default Powheg configuration for dark matter plus monojet production (with a vector mediator).
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(DMV, self).__init__(base_directory, "DMV", **kwargs)
24 
25 
26  self.allowed_decay_modes = ["vector EFT", "axial-vector EFT", "vector full theory", "axial-vector full theory"]
27 
28  # Add all keywords for this process, overriding defaults if required
29  self.add_keyword("bornktmin", 100.0)
30  self.add_keyword("bornonly")
31  self.add_keyword("bornsuppfact")
32  self.add_keyword("bornzerodamp")
33  self.add_keyword("bottomthr")
34  self.add_keyword("bottomthrpdf")
35  self.add_keyword("btildeborn")
36  self.add_keyword("btildecoll")
37  self.add_keyword("btildereal")
38  self.add_keyword("btildevirt")
39  self.add_keyword("btlscalect")
40  self.add_keyword("btlscalereal")
41  self.add_keyword("charmthr")
42  self.add_keyword("charmthrpdf")
43  self.add_keyword("check_bad_st1")
44  self.add_keyword("check_bad_st2")
45  self.add_keyword("clobberlhe")
46  self.add_keyword("colltest")
47  self.add_keyword("compress_lhe")
48  self.add_keyword("compress_upb")
49  self.add_keyword("compute_rwgt")
50  self.add_keyword("DMgDM")
51  self.add_keyword("DMgSM")
52  self.add_keyword("DMmass")
53  self.add_keyword("DMVmass")
54  self.add_keyword("DMVwidth")
55  self.add_keyword("doublefsr", 1)
56  self.add_keyword("evenmaxrat")
57  self.add_keyword("facscfact", self.default_scales[0])
58  self.add_keyword("fastbtlbound")
59  self.add_keyword("fixedgrid")
60  self.add_keyword("flg_debug")
61  self.add_keyword("foldcsi", 2)
62  self.add_keyword("foldphi", 2)
63  self.add_keyword("foldy", 2)
64  self.add_keyword("fullrwgt")
65  self.add_keyword("fullrwgtmode")
66  self.add_keyword("hdamp")
67  self.add_keyword("hfact")
68  self.add_keyword("icsimax")
69  self.add_keyword("idDM")
70  self.add_keyword("ih1")
71  self.add_keyword("ih2")
72  self.add_keyword("itmx1", 5)
73  self.add_keyword("itmx1rm")
74  self.add_keyword("itmx2", 5)
75  self.add_keyword("itmx2rm")
76  self.add_keyword("iupperfsr")
77  self.add_keyword("iupperisr")
78  self.add_keyword("iymax")
79  self.add_keyword("lhans1", self.default_PDFs)
80  self.add_keyword("lhans2", self.default_PDFs)
81  self.add_keyword("lhapdf6maxsets")
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("manyseeds")
88  self.add_keyword("mass_high")
89  self.add_keyword("mass_low")
90  self.add_keyword("masswindow_high")
91  self.add_keyword("masswindow_low")
92  self.add_keyword("max_io_bufsize")
93  self.add_keyword("maxseeds")
94  self.add_keyword("minlo")
95  self.add_keyword("mintupbratlim")
96  self.add_keyword("mintupbxless")
97  self.add_keyword("ncall1", 80000)
98  self.add_keyword("ncall1rm")
99  self.add_keyword("ncall2", 90000)
100  self.add_keyword("ncall2rm")
101  self.add_keyword("ncallfrominput")
102  self.add_keyword("noevents")
103  self.add_keyword("novirtual")
104  self.add_keyword("nubound", 80000)
105  self.add_keyword("olddij")
106  self.add_keyword("par_2gsupp")
107  self.add_keyword("par_diexp")
108  self.add_keyword("par_dijexp")
109  self.add_keyword("parallelstage")
110  self.add_keyword("pdfreweight")
111  self.add_keyword("ptsqmin")
112  self.add_keyword("ptsupp")
113  self.add_keyword("radregion")
114  self.add_keyword("rand1")
115  self.add_keyword("rand2")
116  self.add_keyword("renscfact", self.default_scales[1])
117  self.add_keyword("runningscale", 3, description="Choice for mu_R and mu_F in Bbar integration. [0:2mX (fixed); 1:pTj; 2:XXbar invariant mass; 3:Ht/2]")
118  self.add_keyword("runningwidth")
119  self.add_keyword("rwl_add")
120  self.add_keyword("rwl_file")
121  self.add_keyword("rwl_format_rwgt")
122  self.add_keyword("rwl_group_events")
123  self.add_keyword("skipextratests")
124  self.add_keyword("smartsig")
125  self.add_keyword("softtest")
126  self.add_keyword("stage2init")
127  self.add_keyword("storeinfo_rwgt")
128  self.add_keyword("storemintupb")
129  self.add_keyword("testplots")
130  self.add_keyword("testsuda")
131  self.add_keyword("ubexcess_correct")
132  self.add_keyword("ubsigmadetails")
133  self.add_keyword("use-old-grid")
134  self.add_keyword("use-old-ubound")
135  self.add_keyword("vdecaymode", self.allowed_decay_modes[2], name="DM_model", description="dark matter model to use. [{}]".format("; ".join(self.allowed_decay_modes)))
136  self.add_keyword("withdamp")
137  self.add_keyword("withnegweights")
138  self.add_keyword("withsubtr")
139  self.add_keyword("xgriditeration")
140  self.add_keyword("xupbound", 4)
141 
142  # Add parameter validation functions
143  self.validation_functions.append("validate_decays")
144 
145  def validate_decays(self):
146  """! Validate vdecaymode keyword."""
147  self.expose() # convenience call to simplify syntax
148  self.check_decay_mode(self.DM_model, self.allowed_decay_modes)
149  __decay_mode_lookup = {"vector EFT": 1, "axial-vector EFT": 2, "vector full theory": -1, "axial-vector full theory": -2}
150  list(self.parameters_by_keyword("vdecaymode"))[0].value = __decay_mode_lookup[self.DM_model]
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.DMV.DMV.allowed_decay_modes
allowed_decay_modes
List of allowed decay modes.
Definition: DMV.py:26
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.DMV.DMV.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: DMV.py:17
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.DMV.DMV.validate_decays
def validate_decays(self)
Validate vdecaymode keyword.
Definition: DMV.py:145
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_V2.PowhegV2
Base class for PowhegBox V2 processes.
Definition: powheg_V2.py:6
python.processes.powheg.DMV.DMV
Default Powheg configuration for dark matter plus monojet production (with a vector mediator).
Definition: DMV.py:10