ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Tauolapp_i
share
common
TauolaJobOptionGen.py
Go to the documentation of this file.
1
#--------------------------------------------------------------
2
# Private Application Configuration option
3
#--------------------------------------------------------------
4
from
AthenaCommon.AppMgr
import
ServiceMgr
5
ServiceMgr.MessageSvc.OutputLevel = INFO
6
#--------------------------------------------------------------
7
# Event related parameters
8
#--------------------------------------------------------------
9
# Number of events to be processed (default is 10)
10
theApp.EvtMax = 10
11
#--------------------------------------------------------------
12
# Algorithms Private Options
13
#--------------------------------------------------------------
14
from
AthenaCommon.AlgSequence
import
AlgSequence
15
job=AlgSequence()
16
#
17
from
Pythia_i.Pythia_iConf
import
Pythia
18
job +=
Pythia
()
19
Pythia = job.Pythia
20
21
# Generate Z->mu mu
22
Pythia.PythiaCommand += [
"pysubs msel 0"
,
# Users decay choice.
23
"pydat1 parj 90 20000"
,
# Turn off FSR.
24
"pydat3 mdcy 15 1 0"
,
# Turn off tau decays.
25
#
26
# Z production:
27
"pysubs msub 1 1"
,
# Create Z bosons.
28
"pysubs ckin 1 60.0"
,
# Lower invariant mass.
29
"pypars mstp 43 2"
,
30
"pydat3 mdme 174 1 0"
,
31
"pydat3 mdme 175 1 0"
,
32
"pydat3 mdme 176 1 0"
,
33
"pydat3 mdme 177 1 0"
,
34
"pydat3 mdme 178 1 0"
,
35
"pydat3 mdme 179 1 0"
,
36
"pydat3 mdme 182 1 1"
,
# Switch for Z->ee.
37
"pydat3 mdme 183 1 0"
,
38
"pydat3 mdme 184 1 0"
,
# Switch for Z->mumu.
39
"pydat3 mdme 185 1 0"
,
40
"pydat3 mdme 186 1 1"
,
# Switch for Z->tautau.
41
"pydat3 mdme 187 1 0"
]
42
43
Pythia.useAtlasPythiaTune08=
True
44
45
46
47
48
49
from
TruthExamples.TruthExamplesConf
import
DumpMC
50
job +=
DumpMC
()
51
52
#set-up tauola
53
from
Tauolapp_i.Tauolapp_iConf
import
TauolaAlg
54
TauolaAlg=
TauolaAlg
(
"TauolaAlg"
)
55
57
TauolaAlg.decay_mode_same = 1;
#tau- decay to electron + neutrinos
58
TauolaAlg.decay_mode_opposite = 2;
#tau+ decays to muon + neutrinos
59
TauolaAlg.decay_particle = 15;
# decay particle
60
job += TauolaAlg
61
62
#---------------------------------------------------------------
63
# Pool Persistency
64
#---------------------------------------------------------------
65
from
AthenaPoolCnvSvc.WriteAthenaPool
import
AthenaPoolOutputStream
66
Stream1 = AthenaPoolOutputStream(
"StreamEVGEN"
)
67
Stream1.OutputFile =
"pythia-tauola.pool.root"
68
Stream1.ItemList += [
'EventInfo#*'
,
'McEventCollection#GEN_EVENT'
]
69
70
71
#include( "PartPropSvc/PartPropSvc.py" )
72
#include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
DumpMC
Dump MC event record.
Definition
DumpMC.h:12
TauolaJobOptionGen.Pythia
Pythia
Definition
TauolaJobOptionGen.py:19
TauolaJobOptionGen.TauolaAlg
TauolaAlg
Definition
TauolaJobOptionGen.py:54
Generated on
for ATLAS Offline Software by
1.17.0