ATLAS Offline Software
Loading...
Searching...
No Matches
jobOptions_FlukaBeamHalo.py
Go to the documentation of this file.
1import AthenaCommon.AtlasUnixGeneratorJob
2
3
4from AthenaCommon.AlgSequence import AlgSequence
5topSequence = AlgSequence()
6
7
8from AthenaCommon.AppMgr import ServiceMgr
9
10
11from AthenaCommon.AppMgr import theApp
12
13#theApp.EvtMax = 2835459 # All of the events
14theApp.EvtMax = 3000000
15
16
17
18ServiceMgr.MessageSvc.OutputLevel = INFO
19
20from BeamHaloGenerator.BeamHaloGeneratorConf import BeamHaloGeneratorAlg
21BeamHaloGenerator = BeamHaloGeneratorAlg()
22BeamHaloGenerator.inputType="FLUKA-RB"
23BeamHaloGenerator.inputFile="/pcdisk/pcgeneve01/wbell/data/beamhalo/beamgas/beam-gas_IR1_1GeV_cutoff_D1_field"
24BeamHaloGenerator.interfacePlane = -22600.0
25BeamHaloGenerator.flipProbability = 0.0
26BeamHaloGenerator.randomStream = "BeamHalo"
27BeamHaloGenerator.doMonitoringPlots = True
28
29# The generator settings determine if the event is accepted.
30# * If the allowedPdgId list is not given all particles are accepted.
31# * Limits are in the form of (lower limit, upper limit)
32# * If a limit is not given it is disabled.
33# * If a limit value is -1 then it is disabled.
34# * All limits are checked against |value|
35# * r = sqrt(x^2 + y^2)
36BeamHaloGenerator.generatorSettings = []#
37
51
52topSequence += BeamHaloGenerator
53print BeamHaloGenerator
54
55# Required when monitoring plots are enabled.
56theApp.HistogramPersistency = "ROOT"
57
58if not hasattr(ServiceMgr, 'THistSvc'):
59 from GaudiSvc.GaudiSvcConf import THistSvc
60 ServiceMgr += THistSvc()
61
62ServiceMgr.THistSvc.Output += [ "BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
63
64# For debugging
65#from TruthExamples.TruthExamplesConf import DumpMC
66#topSequence += DumpMC()
67
68from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
69Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
70Stream1.OutputFile = "evgen.pool.root"
71Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#*' ]
72
73
A GenModule algorithm to produce beam halo HepMC records from input ASCII files produced with MARS or...