ATLAS Offline Software
Loading...
Searching...
No Matches
jobOptions.LhefMadGraphPythia.py
Go to the documentation of this file.
1
9
10# IMPORTANT!!! The following line adds the correct meta data to Pythia output!
11import AthenaCommon.AtlasUnixGeneratorJob
12#--------------------------------------------------------------
13
14from AthenaCommon.Logging import logging
15
16evgenLog = logging.getLogger('csc_evgen')
17
18# special setup for event generation
19import AthenaCommon.AtlasUnixGeneratorJob
20
21# remember output level I set
22
23evgenMsgLevel = INFO
24
25# other includes needed by the physics file
26include( "PartPropSvc/PartPropSvc.py" )
27
28# get a handle on topalg
29from AthenaCommon.AlgSequence import AlgSequence
30topAlg = AlgSequence("TopAlg")
31
32svcMgr.MessageSvc.OutputLevel = evgenMsgLevel
33#--------------------------------------------------------------
34# Private Application Configuration options
35#--------------------------------------------------------------
36
37from Pythia_i.Pythia_iConf import Pythia
38topAlg += Pythia()
39
40from TruthExamples.TruthExamplesConf import PrintMC
41topAlg += PrintMC()
42#--------------------------------------------------------------
43# Event related parameters
44#--------------------------------------------------------------
45# Number of events to be processed (default is 10)
46theApp.EvtMax = 5
47#--------------------------------------------------------------
48# Algorithms Private Options
49#--------------------------------------------------------------
50Pythia = topAlg.Pythia
51Pythia.PythiaCommand = ["pyinit user lhef"]
52Pythia.PythiaCommand += [
53 "pypars mstp 81 21",
54 "pystat 1 3 4 5",
55 "pyinit dumpr 1 5"]
56#---------------------------------------------------------------
57# Ntuple service output
58#---------------------------------------------------------------
59from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
60from PoolSvc.PoolSvcConf import PoolSvc
61from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc
62
63Stream1 = AthenaPoolOutputStream("StreamEVGEN")
64Stream1.ItemList += ["EventInfo#*",
65 "McEventCollection#*" ]
66Stream1.OutputFile = "test.pool.root"
67#==============================================================
68#
69# End of job options file
70#
71
Print MC event details for a range of event numbers.
Definition PrintMC.h:12