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 = 150000
17 ServiceMgr.MessageSvc.OutputLevel = INFO
19 from BeamHaloGenerator.BeamHaloGeneratorConf
import BeamHaloGeneratorAlg
20 BeamHaloGenerator = BeamHaloGeneratorAlg()
21 BeamHaloGenerator.inputType=
"MARS-NM"
22 BeamHaloGenerator.inputFile=
"bgi-b2l1.1"
23 BeamHaloGenerator.generateShowers =
False;
24 BeamHaloGenerator.interfacePlane = -20850.0
25 BeamHaloGenerator.flipProbability = 0.0
26 BeamHaloGenerator.randomStream =
"BeamHalo"
28 BeamHaloGenerator.doMonitoringPlots =
True;
37 BeamHaloGenerator.generatorSettings = [
46 "zLimits -4000. 4000.",
53 topSequence += BeamHaloGenerator
54 print BeamHaloGenerator
57 theApp.HistogramPersistency =
"ROOT"
59 if not hasattr(ServiceMgr,
'THistSvc'):
60 from GaudiSvc.GaudiSvcConf
import THistSvc
63 ServiceMgr.THistSvc.Output += [
"BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
66 from TruthExamples.TruthExamplesConf
import DumpMC
67 topSequence += DumpMC()
69 from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
71 Stream1.OutputFile =
"evgen.pool.root"
72 Stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]