ATLAS Offline Software
jobOptions_FlukaBeamHalo.py
Go to the documentation of this file.
1 import AthenaCommon.AtlasUnixGeneratorJob
2 
3 
4 from AthenaCommon.AlgSequence import AlgSequence
5 topSequence = AlgSequence()
6 
7 
8 from AthenaCommon.AppMgr import ServiceMgr
9 
10 
11 from AthenaCommon.AppMgr import theApp
12 
13 #theApp.EvtMax = 2835459 # All of the events
14 theApp.EvtMax = 3000000
15 
16 
17 
18 ServiceMgr.MessageSvc.OutputLevel = INFO
19 
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
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)
36 BeamHaloGenerator.generatorSettings = []#
37 
51 
52 topSequence += BeamHaloGenerator
53 print BeamHaloGenerator
54 
55 # Required when monitoring plots are enabled.
56 theApp.HistogramPersistency = "ROOT"
57 
58 if not hasattr(ServiceMgr, 'THistSvc'):
59  from GaudiSvc.GaudiSvcConf import THistSvc
60  ServiceMgr += THistSvc()
61 
62 ServiceMgr.THistSvc.Output += [ "BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
63 
64 # For debugging
65 #from TruthExamples.TruthExamplesConf import DumpMC
66 #topSequence += DumpMC()
67 
68 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
69 Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
70 Stream1.OutputFile = "evgen.pool.root"
71 Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#*' ]
72 
73 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
Lb2Lll.THistSvc
THistSvc
Definition: Lb2Lll.py:216
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144