ATLAS Offline Software
PythiaEvtGen.py
Go to the documentation of this file.
1 
16 import AthenaCommon.AtlasUnixGeneratorJob
17 
18 from PartPropSvc.PartPropSvcConf import PartPropSvc
19 svcMgr += PartPropSvc()
20 
21 
22 #--------------------------------------------------------------
23 # Private Application Configuration options
24 #--------------------------------------------------------------
25 svcMgr.AuditorSvc.Auditors = [ "ChronoAuditor" ]
26 
27 #--------------------------------------------------------------
28 # Algorithms
29 #--------------------------------------------------------------
30 from AthenaCommon.AlgSequence import AlgSequence
32 
33 from Pythia_i.Pythia_iConf import Pythia
34 job += Pythia()
35 Pythia = job.Pythia
36 
37 from EvtGen_i.EvtGen_iConf import EvtDecay
38 job += EvtDecay()
39 EvtDecay = job.EvtDecay
40 
41 #--------------------------------------------------------------
42 # Number of events to be accepted !! (default is 10)
43 # re-written if use B job submition script
44 # RunNumber, FirstEvent re-written if use B job submition script
45 #--------------------------------------------------------------
46 theApp.EvtMax = 12
47 svcMgr.EventSelector.RunNumber = 1
48 svcMgr.EventSelector.FirstEvent = 1
49 
50 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
51 svcMgr.MessageSvc.OutputLevel = DEBUG
52 #--------------------------------------------------------------
53 # PARAMETERS SPECIFIC TO PYTHIA
54 #--------------------------------------------------------------
55 from PythiaB.PythiaBConf import PythiaB
56 #job += PythiaB()
57 #PythiaB = job.PythiaB
58 
59 include( "EvtGen_i/StopPytWeakBdecays.py" )
60 
61 Pythia.PythiaCommand += ["pysubs msel 5"]
62 #--------------------------------------------------------------
63 # YOUR CONTROL OF EVTGEN
64 #--------------------------------------------------------------
65 # If you do not define a name to your Decay-table file here
66 # then EvtGen will work with a default decay table DECAY.DEC
67 # EvtDecay.userDecayTableName = "MYDECAY.DEC";
68 # EvtGen random seed interface. Does not affect PYTHIA seeds.
69 # This is a TEMPORARY FIX as it does not abide by ATLAS software rules.
70 # James R Catmore, 16/2/2004
71 # EvtDecay.EvtGenRandomSeed = 645754;
72 
73 
74 
75 #--------------------------------------------------------------
76 # Histogram & Ntuple Persistency
77 #--------------------------------------------------------------
78 # Change the following line to "RootHistCnv" for ROOT persistency
79 #theApp.Dlls += [ "RootHistCnv" ]
80 # Change the following line to "ROOT" for ROOT persistency
81 theApp.HistogramPersistency = "ROOT"
82 #--------------------------------------------------------------
83 # NTuple output file
84 #--------------------------------------------------------------
85 #RootHistSvc = Service( "RootHistSvc" )
86 #HbookHistSvc.NPAWC = 1500000
87 #HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
88 #HistogramPersistencySvc.OutputFile = "histo.root"
89 svcMgr.NTupleSvc.Output = [ "FILE1 DATAFILE='pythiaB.root' OPT='NEW' TYP='ROOT'" ]
90 
91 
93 
94 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
95 include( "GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py" )
96 
97 Stream1 = AthenaPoolOutputStream( "Stream1" )
98 Stream1.ForceRead=TRUE
99 Stream1.OutputFile = "pythiaB.pool.root"
100 # 2101 = EventInfo
101 # 133273 = MCTruth (HepMC)
102 Stream1.ItemList += [ "2101#*", "133273#*" ]
103 
104 include("AthenaSealSvc/AthenaSealSvc_joboptions.py" )
105 AthenaSealSvc.CheckDictionary = TRUE
106 
107 
108 #==============================================================
109 #
110 # End of job options file
111 #
112 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
PythiaEvtGen.Pythia
Pythia
Definition: PythiaEvtGen.py:35
python.Include.include
include
Definition: Include.py:319
PythiaEvtGen.EvtDecay
EvtDecay
Definition: PythiaEvtGen.py:39
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144