ATLAS Offline Software
Loading...
Searching...
No Matches
hydjet.minbias.pbpb5520.r12345.job.py
Go to the documentation of this file.
16include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
17from AthenaCommon.Configurable import Configurable
18from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
19
20# configuring the Athena application for a 'generator' job
21import AthenaCommon.AtlasUnixGeneratorJob
22
23# make sure we are loading the ParticleProperty service
24from PartPropSvc.PartPropSvcConf import PartPropSvc
25svcMgr += PartPropSvc()
26
27#--------------------------------------------------------------
28# Private Application Configuration options
29#--------------------------------------------------------------
30
31from AthenaCommon.AlgSequence import AlgSequence
32topAlg = AlgSequence()
33
34from Hydjet_i.Hydjet_iConf import Hydjet
35topAlg += Hydjet()
36
37from TruthExamples.TruthExamplesConf import PrintHijingPars
38topAlg += PrintHijingPars()
39
40StoreGateSvc = svcMgr.StoreGateSvc
41StoreGateSvc.Dump = TRUE
42
43# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
44svcMgr.MessageSvc.OutputLevel = 3
45svcMgr.MessageSvc.defaultLimit = 100000
46
47#--------------------------------------------------------------
48# Event related parameters
49#--------------------------------------------------------------
50# Number of events to be processed (default is 10)
51theApp.EvtMax = 10
52
53# Set run number (default 0 causes problems)
54svcMgr.EventSelector.RunNumber = 12345
55svcMgr.EventSelector.FirstEvent = 1
56
57#--------------------------------------------------------------
58# Algorithms Private Options
59#--------------------------------------------------------------
60
61# Use fixed seeds for reproducibility
62seed1 = 123456789
63seed1 &= 0xfffffffe
64
65Hydjet = Algorithm( "Hydjet" )
66Hydjet.McEventKey = "GEN_EVENT"
67Hydjet.Initialize = ["e 5520", "a 208", "nh 20000",
68 #"ifb 0", "bfix 0", # fixed impact [fm]
69 "ifb 1", "bmin 0", "bmax 30", # impact range [fm]
70 "nhsel 2", "ishad 1", "ptmin 10.0",
71 "ylfl 4.0", "ytfl 1.5", "tf 0.1", "fpart 1",
72 "ienglu 0", "ianglu 0", "t0 1", "tau0 0.1", "nf 0",
73 "mstp 51 7", "mstp 81 0", "mstu 21 1", "paru 14 1.0",
74 "msel 1", "nseed "+str(seed1) ]
75
76#---------------------------------------------------------------
77# Pool Persistency
78#---------------------------------------------------------------
79from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
80Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
81
82theApp.Dlls += [ "GeneratorObjectsAthenaPoolPoolCnv" ]
83PoolSvc = Service( "PoolSvc" )
84
85# Name of the output file
86Stream1.OutputFile = "hydjet.test.pbpb5520.r12345.pool.root"
87
88# 2101 == EventInfo
89# 133273 == MCTruth (HepMC)
90# 54790518 == HijigEventParams
91Stream1.ItemList += [ "2101#*" ]
92Stream1.ItemList += [ "133273#*" ]
93Stream1.ItemList += [ "54790518#*" ]
94
95#==============================================================
96#
97# End of job options file
98#
99