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