ATLAS Offline Software
Loading...
Searching...
No Matches
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#--------------------------------------------------------------
8from AthenaCommon.AppMgr import ServiceMgr
9ServiceMgr.MessageSvc.OutputLevel = INFO
10#--------------------------------------------------------------
11# Event related parameters
12#--------------------------------------------------------------
13# Number of events to be processed (default is 10)
14theApp.EvtMax = 10
15#--------------------------------------------------------------
16# Algorithms Private Options
17#--------------------------------------------------------------
18#
19
25
26from AthenaCommon.AlgSequence import AlgSequence
27job = AlgSequence()
28from Pythia8_i.Pythia8_iConf import Pythia8_i
29job+=Pythia8_i()
30Pythia = job.Pythia8_i
31
32# Generate Z->mu mu
33
34
35# Z decays into tau+tau-
36Pythia.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
49from TruthExamples.TruthExamplesConf import DumpMC
50job += DumpMC()
51
52#set-up tauola
53from Tauolapp_i.Tauolapp_iConf import TauolaAlg
54TauolaAlg=TauolaAlg( "TauolaAlg" )
55
57TauolaAlg.decay_mode_same = 1; #tau- decay to electron + neutrinos
58TauolaAlg.decay_mode_opposite = 2; #tau+ decays to muon + neutrinos
59TauolaAlg.decay_particle = 15; # decay particle
60job += TauolaAlg
61
62#---------------------------------------------------------------
63# Pool Persistency
64#---------------------------------------------------------------
65from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
66Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
67Stream1.OutputFile = "pythia-tauola.pool.root"
68Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#GEN_EVENT' ]
69
70
71#include( "PartPropSvc/PartPropSvc.py" )
72#include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
Dump MC event record.
Definition DumpMC.h:12