ATLAS Offline Software
Loading...
Searching...
No Matches
PythiaEvtGen.py
Go to the documentation of this file.
16import AthenaCommon.AtlasUnixGeneratorJob
17
18from PartPropSvc.PartPropSvcConf import PartPropSvc
19svcMgr += PartPropSvc()
20
21
22#--------------------------------------------------------------
23# Private Application Configuration options
24#--------------------------------------------------------------
25svcMgr.AuditorSvc.Auditors = [ "ChronoAuditor" ]
26
27#--------------------------------------------------------------
28# Algorithms
29#--------------------------------------------------------------
30from AthenaCommon.AlgSequence import AlgSequence
31job=AlgSequence()
32
33from Pythia_i.Pythia_iConf import Pythia
34job += Pythia()
35Pythia = job.Pythia
36
37from EvtGen_i.EvtGen_iConf import EvtDecay
38job += EvtDecay()
39EvtDecay = 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#--------------------------------------------------------------
46theApp.EvtMax = 12
47svcMgr.EventSelector.RunNumber = 1
48svcMgr.EventSelector.FirstEvent = 1
49
50# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
51svcMgr.MessageSvc.OutputLevel = DEBUG
52#--------------------------------------------------------------
53# PARAMETERS SPECIFIC TO PYTHIA
54#--------------------------------------------------------------
55from PythiaB.PythiaBConf import PythiaB
56#job += PythiaB()
57#PythiaB = job.PythiaB
58
59include( "EvtGen_i/StopPytWeakBdecays.py" )
60
61Pythia.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
81theApp.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"
89svcMgr.NTupleSvc.Output = [ "FILE1 DATAFILE='pythiaB.root' OPT='NEW' TYP='ROOT'" ]
90
91
93
94from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
95include( "GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py" )
96
97Stream1 = AthenaPoolOutputStream( "Stream1" )
98Stream1.ForceRead=TRUE
99Stream1.OutputFile = "pythiaB.pool.root"
100# 2101 = EventInfo
101# 133273 = MCTruth (HepMC)
102Stream1.ItemList += [ "2101#*", "133273#*" ]
103
104include("AthenaSealSvc/AthenaSealSvc_joboptions.py" )
105AthenaSealSvc.CheckDictionary = TRUE
106
107
108#==============================================================
109#
110# End of job options file
111#
112