12paramFile =
"epos_crmc.param"
14inputFiles =
"qgsjet.dat \
24os.system(
"mkdir tabs")
27os.system(
"get_files %s" % inputFiles)
28for fin
in inputFiles.split():
29 os.system(
"mv %s tabs/%s" % (fin, fin))
32if not os.path.isfile( paramFile ):
33 print "\"", paramFile,
"\"",
" is missing!. Force exit..."
37 print "\"", paramFile,
"\"",
" found!."
40from AthenaCommon.AppMgr
import ServiceMgr
42from AthenaCommon.AlgSequence
import AlgSequence
48from Epos_i.Epos_iConf
import Epos
51epos.BeamMomentum = -3500.0
52epos.TargetMomentum = 3500.0
53epos.PrimaryParticle = 1
54epos.TargetParticle = 1
56epos.ParamFile = paramFile
58epos.LheFile =
"epos.lhe"
63MessageSvc = Service(
"MessageSvc" )
64MessageSvc.OutputLevel = 3
68evgenConfig.minevents = 100
73from TruthExamples.TruthExamplesConf
import DumpMC
79import AthenaPoolCnvSvc.WriteAthenaPool
80from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
82stream1 = AthenaPoolOutputStream(
"StreamEVGEN" )
83stream1.WritingTool =
"AthenaOutputStreamTool"
84stream1.OutputFile =
"epos_events.pool.root"
85stream1.TakeItemsFromInput =
True
86stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]
This code is used to get an Epos Monte Carlo event.