ATLAS Offline Software
Loading...
Searching...
No Matches
writeGenEventToPool.py
Go to the documentation of this file.
9import AthenaCommon.AtlasUnixGeneratorJob
10
11import AthenaCommon.Constants as Lvl
12from AthenaCommon.AppMgr import ServiceMgr as svcMgr
13from AthenaCommon.AppMgr import theApp
14
15#--------------------------------------------------------------
16# Private Application Configuration options
17#--------------------------------------------------------------
18from AthenaCommon.AlgSequence import AlgSequence
19job = AlgSequence()
20
21
22job += CfgMgr.Pythia()
23
24
25job += CfgMgr.DumpMC()
26
27svcMgr.MessageSvc.OutputLevel = Lvl.DEBUG
28
29#--------------------------------------------------------------
30# Event related parameters
31#--------------------------------------------------------------
32Pythia = job.Pythia
33Pythia.PythiaCommand = ["pysubs msel 13","pysubs ckin 3 18.","pypars mstp 43 2"]
34
35# Number of events to be processed (default is 10)
36theApp.EvtMax = 5
37
38#---------------------------------------------------------------
39# Pool Persistency
40#---------------------------------------------------------------
41import AthenaPoolCnvSvc.WriteAthenaPool
42job += CfgMgr.AthenaOutputStream(
43 "OutStream",
44 WritingTool = "AthenaOutputStreamTool"
45 )
46job.OutStream.ItemList += [
47 "EventInfo#*",
48 "McEventCollection#*"
49 ]
50job.OutStream.OutputFile = "mc.event.pool"
51#==============================================================
52#
53# End of job options file
54#
55