ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Tauolapp_i
share
common
TauolaJobOptionGenPythia8.py
Go to the documentation of this file.
1
#--------------------------------------------------------------
2
# Private Application Configuration option
3
# Using Pythia8
4
#
5
# check out both External/Pythia8 and Generators/Pythia8_i . External/Pythia8 is used to link to the Genser Pythia8
6
# distribution. You should source setup.sh and gmake first External/Pythia8 and then Generators/Pythia8_i.
7
#--------------------------------------------------------------
8
from
AthenaCommon.AppMgr
import
ServiceMgr
9
ServiceMgr.MessageSvc.OutputLevel = INFO
10
#--------------------------------------------------------------
11
# Event related parameters
12
#--------------------------------------------------------------
13
# Number of events to be processed (default is 10)
14
theApp.EvtMax = 10
15
#--------------------------------------------------------------
16
# Algorithms Private Options
17
#--------------------------------------------------------------
18
#
19
25
26
from
AthenaCommon.AlgSequence
import
AlgSequence
27
job = AlgSequence()
28
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
29
job+=
Pythia8_i
()
30
Pythia = job.Pythia8_i
31
32
# Generate Z->mu mu
33
34
35
# Z decays into tau+tau-
36
Pythia.Commands += [
"WeakBosonAndParton:qqbar2gmZg = on"
,
37
"WeakBosonAndParton:qg2gmZq = on"
,
38
"23:onMode = off"
,
# choose decay modes for Z0 : switch off everything but Z0 -> leptons
39
"23:onIfAny = 15"
,
# 23:onIfAny = 11 13 15, choose tau
40
41
]
42
#Pythia.CollisionEnergy = 14000
43
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
Pythia8_i
Definition
Pythia8_i.h:58
TauolaJobOptionGenPythia8.TauolaAlg
TauolaAlg
Definition
TauolaJobOptionGenPythia8.py:54
Generated on
for ATLAS Offline Software by
1.17.0