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