1 import AthenaCommon.AtlasUnixGeneratorJob
4 from AthenaCommon.AlgSequence
import AlgSequence
8 from AthenaCommon.AppMgr
import ServiceMgr
11 from AthenaCommon.AppMgr
import theApp
14 theApp.EvtMax = 3000000
18 ServiceMgr.MessageSvc.OutputLevel = INFO
20 from BeamHaloGenerator.BeamHaloGeneratorConf
import BeamHaloGeneratorAlg
21 BeamHaloGenerator = BeamHaloGeneratorAlg()
22 BeamHaloGenerator.inputType=
"FLUKA-RB"
23 BeamHaloGenerator.inputFile=
"/pcdisk/pcgeneve01/wbell/data/beamhalo/beamgas/beam-gas_IR1_1GeV_cutoff_D1_field"
24 BeamHaloGenerator.interfacePlane = -22600.0
25 BeamHaloGenerator.flipProbability = 0.0
26 BeamHaloGenerator.randomStream =
"BeamHalo"
27 BeamHaloGenerator.doMonitoringPlots =
True
36 BeamHaloGenerator.generatorSettings = []
52 topSequence += BeamHaloGenerator
53 print BeamHaloGenerator
56 theApp.HistogramPersistency =
"ROOT"
58 if not hasattr(ServiceMgr,
'THistSvc'):
59 from GaudiSvc.GaudiSvcConf
import THistSvc
62 ServiceMgr.THistSvc.Output += [
"BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
68 from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
70 Stream1.OutputFile =
"evgen.pool.root"
71 Stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]