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