ATLAS Offline Software
Loading...
Searching...
No Matches
jobOptions_CavernBackground.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
13theApp.EvtMax = 500000 # All of the events
14
15
16
17ServiceMgr.MessageSvc.OutputLevel = INFO
18
19from BeamHaloGenerator.BeamHaloGeneratorConf import BeamHaloGeneratorAlg
20BeamHaloGenerator = BeamHaloGeneratorAlg()
21BeamHaloGenerator.inputType="FLUKA-VT"
22BeamHaloGenerator.inputFile="/localdisk/wbell/data/cavern-background/4vector_7TeV_R203_205_Z428_610.dat"
23BeamHaloGenerator.interfacePlane = 0.0
24BeamHaloGenerator.flipProbability = 0.0
25BeamHaloGenerator.randomStream = "BeamHalo"
26BeamHaloGenerator.doMonitoringPlots = True
27
28# The generator settings determine if the event is accepted.
29# * If the allowedPdgId list is not given all particles are accepted.
30# * Limits are in the form of (lower limit, upper limit)
31# * If a limit is not given it is disabled.
32# * If a limit value is -1 then it is disabled.
33# * All limits are checked against |value|
34# * r = sqrt(x^2 + y^2)
35BeamHaloGenerator.generatorSettings = [#
36# "allowedPdgId 2212 -2212 2112 -2112", # Just p and n
37 "pxLimits -1 -1",
38 "pyLimits -1 -1",
39 "pzLimits -1 -1",
40 "energyLimits -1 -1",
41 "xLimits -1 -1",
42 "yLimits -1 -1",
43 "ptLimits -1 -1",
44 "phiLimits -1 -1",
45 "etaLimits -1 -1",
46 "rLimits -1 -1",
47 "weightLimits -1 -1"]
48
49topSequence += BeamHaloGenerator
50print BeamHaloGenerator
51
52# Required when monitoring plots are enabled.
53theApp.HistogramPersistency = "ROOT"
54
55if not hasattr(ServiceMgr, 'THistSvc'):
56 from GaudiSvc.GaudiSvcConf import THistSvc
57 ServiceMgr += THistSvc()
58
59ServiceMgr.THistSvc.Output += [ "BeamHalo DATAFILE='BeamHalo.root' OPT='RECREATE'"]
60
61# For debugging
62from TruthExamples.TruthExamplesConf import DumpMC
63topSequence += DumpMC()
64
65from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
66Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
67Stream1.OutputFile = "evgen.pool.root"
68Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#*' ]
69
70
A GenModule algorithm to produce beam halo HepMC records from input ASCII files produced with MARS or...
Dump MC event record.
Definition DumpMC.h:12