ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Herwig7_i
share
common
Herwig7_QED_EvtGen_ll.py
Go to the documentation of this file.
1
# JobOption fragment for Herwig >=7.0.4
2
3
# Common job option for gamma gamma -> ll processes in Herwig7
4
# Generation in Min < M < Max window. Min/Max and lepton flavour determined
5
# from the JO name, e.g. MC15.363749.Herwig7EvtGen_BudnevQED_ggTOee_20M45_LeptonFilter.py
6
# Contact: Oldrich Kepka
7
8
# Finnal states to be found in the JO name
9
h7finalStates = {
"ggTOee"
:
"Electron"
,
"ggTOmumu"
:
"Muon"
,
"ggTOtautau"
:
"Tau"
}
10
11
# Assert right JO name format
12
info = runArgs.jobConfig[0].
split
(
"_"
)
13
assert
(info[1] ==
"BudnevQED"
) ,
"JobOption name does not contain BudnevQED"
14
assert
(info[2]
in
h7finalStates),
"Unknown final state key %s"
% info[2]
15
16
# Extract final state and mass range from the JO name
17
fs = h7finalStates[info[2]]
18
mrange = info[3].
split
(
'M'
)
19
assert
(len(mrange) >0),
"Cannot extract mass range from the JO"
20
del h7finalStates
21
22
23
# Initialize Herwig7 generator configuration for built-in matrix elements
24
include(
"Herwig7_i/Herwig7_BuiltinME.py"
)
25
26
# Generic QED include with maximum phase-space
27
include(
"Herwig7_i/Herwig7_QED_EvtGen_Common.py"
)
28
29
# Mmin<M<Mmax
30
command =
"""\
31
set QCDCuts:MHatMin """
+str(mrange[0])+
"""*GeV\n"""
32
if
len(mrange) > 1
and
mrange[1]!=
''
:
33
command +=
"set QCDCuts:MHatMax "
+str(mrange[1])+
"*GeV\n"
34
35
# Hard process
36
command +=
"""\
37
set LeptonKtCut:MinKT 2*GeV # save minimal setting, override in upstream jo if pT-filter used
38
cd /Herwig/MatrixElements
39
insert SimpleQCD:MatrixElements 0 /Herwig/MatrixElements/MEgg2ff
40
set /Herwig/MatrixElements/MEgg2ff:Process """
+str(fs)+
"""
41
"""
42
43
44
Herwig7Config.add_commands(command)
45
del command
46
del mrange
47
del fs
split
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition
hcg.cxx:179
Generated on
for ATLAS Offline Software by
1.17.0