ATLAS Offline Software
Loading...
Searching...
No Matches
TauolaJobOptionGen.py
Go to the documentation of this file.
1#--------------------------------------------------------------
2# Private Application Configuration option
3#--------------------------------------------------------------
4from AthenaCommon.AppMgr import ServiceMgr
5ServiceMgr.MessageSvc.OutputLevel = INFO
6#--------------------------------------------------------------
7# Event related parameters
8#--------------------------------------------------------------
9# Number of events to be processed (default is 10)
10theApp.EvtMax = 10
11#--------------------------------------------------------------
12# Algorithms Private Options
13#--------------------------------------------------------------
14from AthenaCommon.AlgSequence import AlgSequence
15job=AlgSequence()
16#
17from Pythia_i.Pythia_iConf import Pythia
18job +=Pythia()
19Pythia = job.Pythia
20
21# Generate Z->mu mu
22Pythia.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
43Pythia.useAtlasPythiaTune08=True
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