ATLAS Offline Software
genPbPbJobOpt.py
Go to the documentation of this file.
1 
17 include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
18 from AthenaCommon.Configurable import Configurable
19 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
20 
21 # configuring the Athena application for a 'generator' job
22 import AthenaCommon.AtlasUnixGeneratorJob
23 
24 # make sure we are loading the ParticleProperty service
25 from PartPropSvc.PartPropSvcConf import PartPropSvc
26 svcMgr += PartPropSvc()
27 #--------------------------------------------------------------
28 # Private Application Configuration options
29 #--------------------------------------------------------------
30 from AthenaCommon.AlgSequence import AlgSequence
31 topAlg = AlgSequence()
32 
33 from Hijing_i.Hijing_iConf import Hijing
34 topAlg += Hijing()
35 
36 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
37 svcMgr.MessageSvc.OutputLevel = 4
38 svcMgr.MessageSvc.defaultLimit = 100000
39 #--------------------------------------------------------------
40 # Event related parameters
41 #--------------------------------------------------------------
42 # Number of events to be processed (default is 10)
43 theApp.EvtMax = 5
44 
45 # Set run number (default 0 causes problems)
46 svcMgr.EventSelector.RunNumber = 12345
47 
48 #--------------------------------------------------------------
49 # Algorithms Private Options
50 #--------------------------------------------------------------
51 
52 import random
53 
54 # Generate seeds
55 #
56 seed1 = random.randint(2<<15-1,1<<31-1)
57 seed2 = random.randint(2<<15-1,1<<31-1)
58 seed1 &= 0xfffffffe
59 seed2 &= 0xfffffffe
60 
61 Hijing = Algorithm( "Hijing" )
62 Hijing.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 #---------------------------------------------------------------
79 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
80 
81 #--- Stream1 ---
82 Stream1 = AthenaPoolOutputStream( "Stream1" )
83 
84 theApp.Dlls += [ "GeneratorObjectsAthenaPoolPoolCnv" ]
85 PoolSvc = Service( "PoolSvc" )
86 
87 # 2101 == EventInfo
88 # 133273 == MCTruth (HepMC)
89 # 54790518 == HijigEventParams
90 Stream1.ItemList += [ "2101#*" ]
91 Stream1.ItemList += [ "133273#*" ]
92 Stream1.ItemList += [ "54790518#*" ]
93 
94 Stream1.OutputFile = "hijing.pool.root"
95 #==============================================================
96 #
97 # End of job options file
98 #
99 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.FakeAthena.Algorithm
def Algorithm(name)
Definition: FakeAthena.py:41
python.FakeAthena.Service
def Service(name)
Definition: FakeAthena.py:38
Configurable
athena/gaudi ----------------------------------------------------------—
python.Include.include
include
Definition: Include.py:319
genPbPbJobOpt.Hijing
Hijing
Definition: genPbPbJobOpt.py:61
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144