ATLAS Offline Software
Loading...
Searching...
No Matches
genPbPbJobOpt.py
Go to the documentation of this file.
17include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
18from AthenaCommon.Configurable import Configurable
19from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
20
21# configuring the Athena application for a 'generator' job
22import AthenaCommon.AtlasUnixGeneratorJob
23
24# make sure we are loading the ParticleProperty service
25from PartPropSvc.PartPropSvcConf import PartPropSvc
26svcMgr += PartPropSvc()
27#--------------------------------------------------------------
28# Private Application Configuration options
29#--------------------------------------------------------------
30from AthenaCommon.AlgSequence import AlgSequence
31topAlg = AlgSequence()
32
33from Hijing_i.Hijing_iConf import Hijing
34topAlg += Hijing()
35
36# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
37svcMgr.MessageSvc.OutputLevel = 4
38svcMgr.MessageSvc.defaultLimit = 100000
39#--------------------------------------------------------------
40# Event related parameters
41#--------------------------------------------------------------
42# Number of events to be processed (default is 10)
43theApp.EvtMax = 5
44
45# Set run number (default 0 causes problems)
46svcMgr.EventSelector.RunNumber = 12345
47
48#--------------------------------------------------------------
49# Algorithms Private Options
50#--------------------------------------------------------------
51
52import random
53
54# Generate seeds
55#
56seed1 = random.randint(2<<15-1,1<<31-1)
57seed2 = random.randint(2<<15-1,1<<31-1)
58seed1 &= 0xfffffffe
59seed2 &= 0xfffffffe
60
61Hijing = Algorithm( "Hijing" )
62Hijing.Initialize = ["efrm 5520.", "frame CMS", "proj A", "targ A",
63 "iap 208", "izp 82", "iat 208", "izt 82",
64 # Simulation of minimum-bias events
65 "bmin 0.", "bmax 20.",
66 # Maximum pt of hard or semihard scatterings in GeV,
67 # if negative (or commented as below) there is no up-limit.
68
70 "ihpr2 4 0",
71 # Jan24,06 turns ON decays charm and bottom but not pi0, lambda, ...
72 "ihpr2 12 2",
73 # Turns ON retaining of particle history - truth information:
74 "ihpr2 21 1"]
75
76#---------------------------------------------------------------
77# Pool Persistency
78#---------------------------------------------------------------
79from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
80
81#--- Stream1 ---
82Stream1 = AthenaPoolOutputStream( "Stream1" )
83
84theApp.Dlls += [ "GeneratorObjectsAthenaPoolPoolCnv" ]
85PoolSvc = Service( "PoolSvc" )
86
87# 2101 == EventInfo
88# 133273 == MCTruth (HepMC)
89# 54790518 == HijigEventParams
90Stream1.ItemList += [ "2101#*" ]
91Stream1.ItemList += [ "133273#*" ]
92Stream1.ItemList += [ "54790518#*" ]
93
94Stream1.OutputFile = "hijing.pool.root"
95#==============================================================
96#
97# End of job options file
98#
99