7from AthenaCommon.AppMgr
import ServiceMgr
9from AthenaCommon.AlgSequence
import AlgSequence
15from Epos4_i.Epos4_iConf
import Epos4
18Epos4.BeamMomentum = -3500.0
19Epos4.TargetMomentum = 3500.0
23MessageSvc = Service(
"MessageSvc" )
24MessageSvc.OutputLevel = 3
28evgenConfig.minevents = 100
33from TruthExamples.TruthExamplesConf
import DumpMC
39import AthenaPoolCnvSvc.WriteAthenaPool
40from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
42stream1 = AthenaPoolOutputStream(
"StreamEVGEN" )
43stream1.WritingTool =
"AthenaOutputStreamTool"
44stream1.OutputFile =
"Epos4_events.pool.root"
45stream1.TakeItemsFromInput =
True
46stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]
This code is used to get an Epos4 Monte Carlo event.