1import AthenaCommon.AtlasUnixGeneratorJob
4from AthenaCommon.AlgSequence
import AlgSequence
5topSequence = AlgSequence()
8from AthenaCommon.AppMgr
import ServiceMgr
11from AthenaCommon.AppMgr
import theApp
17ServiceMgr.MessageSvc.OutputLevel = INFO
19from BeamHaloGenerator.BeamHaloGeneratorConf
import BeamHaloGeneratorAlg
21BeamHaloGenerator.inputType=
"MARS-NM"
22BeamHaloGenerator.inputFile=
"bgi-b2l1.1"
23BeamHaloGenerator.generateShowers =
False;
24BeamHaloGenerator.interfacePlane = -20850.0
25BeamHaloGenerator.flipProbability = 0.0
26BeamHaloGenerator.randomStream =
"BeamHalo"
28BeamHaloGenerator.doMonitoringPlots =
True;
37BeamHaloGenerator.generatorSettings = [
46 "zLimits -4000. 4000.",
53topSequence += BeamHaloGenerator
54print BeamHaloGenerator
57theApp.HistogramPersistency =
"ROOT"
59if not hasattr(ServiceMgr,
'THistSvc'):
60 from GaudiSvc.GaudiSvcConf
import THistSvc
61 ServiceMgr += THistSvc()
63ServiceMgr.THistSvc.Output += [
"BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
66from TruthExamples.TruthExamplesConf
import DumpMC
69from AthenaPoolCnvSvc.WriteAthenaPool
import AthenaPoolOutputStream
70Stream1 = AthenaPoolOutputStream(
"StreamEVGEN" )
71Stream1.OutputFile =
"evgen.pool.root"
72Stream1.ItemList += [
'EventInfo#*',
'McEventCollection#*' ]
A GenModule algorithm to produce beam halo HepMC records from input ASCII files produced with MARS or...