ATLAS Offline Software
Loading...
Searching...
No Matches
jobOptions.epos4.py
Go to the documentation of this file.
1# ----------------------------------------------------------------------
2# Example Epos4 JO file, adapted for Epos4 from the version for Epos by Sebastian Piec
3# Author: Andrii Verbytskyi
4#
5
6# ----------------------------------------------------------------------
7from AthenaCommon.AppMgr import ServiceMgr
8
9from AthenaCommon.AlgSequence import AlgSequence
10job = AlgSequence()
11
12# ----------------------------------------------------------------------
13# Epos4 initialization
14# ----------------------------------------------------------------------
15from Epos4_i.Epos4_iConf import Epos4
16
17Epos4 = Epos4()
18Epos4.BeamMomentum = -3500.0
19Epos4.TargetMomentum = 3500.0
20job += Epos4
21
22# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
23MessageSvc = Service( "MessageSvc" )
24MessageSvc.OutputLevel = 3
25
26# Number of events to be processed (default is 10)
27#theApp.EvtMax = 200
28evgenConfig.minevents = 100
29
30# ----------------------------------------------------------------------
31# Printing service
32# ----------------------------------------------------------------------
33from TruthExamples.TruthExamplesConf import DumpMC
34#job += DumpMC()
35
36# ----------------------------------------------------------------------
37# Ntuple service output
38# ----------------------------------------------------------------------
39import AthenaPoolCnvSvc.WriteAthenaPool
40from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
41
42stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
43stream1.WritingTool = "AthenaOutputStreamTool"
44stream1.OutputFile = "Epos4_events.pool.root"
45stream1.TakeItemsFromInput = True
46stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#*' ]
47# ----------------------------------------------------------------------
48
This code is used to get an Epos4 Monte Carlo event.
Definition Epos4.h:19