ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Pythia8_i
share
common
Pythia8_Base_Fragment.py
Go to the documentation of this file.
1
2
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
3
genSeq +=
Pythia8_i
(
"Pythia8"
)
4
evgenConfig.generators += [
"Pythia8"
]
5
6
if
evgenConfig.PDGparams:
7
8
genSeq.Pythia8.Commands += [
9
"Main:timesAllowErrors = 500"
,
10
"ParticleDecays:limitTau0 = on"
,
11
"ParticleDecays:tau0Max = 10.0"
]
12
13
14
from
EvgenProdTools.offline_dict
import
parameters
15
16
17
particle_params = parameters.get(
"particles"
)
18
if
particle_params:
19
for
key, value
in
particle_params.items():
20
21
if
int(key)
in
range(6,26):
22
genSeq.Pythia8.Commands += [
23
"{:d}:m0 = {}"
.format(int(key), value[
'mass'
]),
24
"{:d}:mWidth = {}"
.format(int(key), value[
'width'
])
25
]
26
else
:
27
print
(
"Could not retrieve standard ATLAS particle parameters"
)
28
29
30
ew_params = parameters.get(
"EW_parameters"
)
31
if
ew_params:
32
33
for
key,value
in
ew_params.items():
34
if
key[1]
in
(
'sin2thetaW'
,
'sin2thetaWbar'
):
35
genSeq.Pythia8.Commands += [
36
'StandardModel:{} = {}'
.format(key[1], value)
37
]
38
else
:
39
print
(
"Could not retrieve standard ATLAS EW parameters"
)
40
else
:
41
42
genSeq.Pythia8.Commands += [
43
"Main:timesAllowErrors = 500"
,
44
"6:m0 = 172.5"
,
45
"23:m0 = 91.1876"
,
46
"23:mWidth = 2.4952"
,
47
"24:m0 = 80.399"
,
48
"24:mWidth = 2.085"
,
49
"StandardModel:sin2thetaW = 0.23113"
,
50
"StandardModel:sin2thetaWbar = 0.23146"
,
51
"ParticleDecays:limitTau0 = on"
,
52
"ParticleDecays:tau0Max = 10.0"
]
53
54
56
from
MCJobOptionUtils.JOsupport
import
check_reset_proc_number
57
check_reset_proc_number(opts)
58
59
62
63
if
"PYTHIA8VER"
in
os.environ:
64
verph8str = str(os.environ[
'PYTHIA8VER'
])[:3]
65
verph8 = int(verph8str)
66
if
verph8 >= 314:
67
genSeq.Pythia8.Commands += [
"TimeShower:recoilStrategyRF = 1"
]
68
69
71
72
if
verph8 >= 316:
73
genSeq.Pythia8.Commands += [
"StringFragmentation:stopMass = 1.0"
]
Pythia8_i
Definition
Pythia8_i.h:58
Generated on
for ATLAS Offline Software by
1.17.0