1 import AthenaCommon.AtlasUnixGeneratorJob
4 from AthenaCommon.AlgSequence
import AlgSequence
8 from AthenaCommon.AppMgr
import ServiceMgr
11 from AthenaCommon.AppMgr
import theApp
13 theApp.EvtMax = 500000
17 ServiceMgr.MessageSvc.OutputLevel = INFO
19 from BeamHaloGenerator.BeamHaloGeneratorConf
import BeamHaloGeneratorAlg
20 BeamHaloGenerator = BeamHaloGeneratorAlg()
21 BeamHaloGenerator.inputType=
"FLUKA-VT"
22 BeamHaloGenerator.inputFile=
"/localdisk/wbell/data/cavern-background/4vector_7TeV_R203_205_Z428_610.dat"
23 BeamHaloGenerator.interfacePlane = 0.0
24 BeamHaloGenerator.flipProbability = 0.0
25 BeamHaloGenerator.randomStream =
"BeamHalo"
26 BeamHaloGenerator.doMonitoringPlots =
True
35 BeamHaloGenerator.generatorSettings = [
49 topSequence += BeamHaloGenerator
50 print BeamHaloGenerator
53 theApp.HistogramPersistency =
"ROOT"
55 if not hasattr(ServiceMgr,
'THistSvc'):
56 from GaudiSvc.GaudiSvcConf
import THistSvc
59 ServiceMgr.THistSvc.Output += [
"BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
62 from TruthExamples.TruthExamplesConf
import DumpMC
63 topSequence += DumpMC()
65 from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
67 Stream1.OutputFile =
"evgen.pool.root"
68 Stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]