ATLAS Offline Software
Loading...
Searching...
No Matches
PythiaBEvtGen.py
Go to the documentation of this file.
22import AthenaCommon.AtlasUnixGeneratorJob
23
24from PartPropSvc.PartPropSvcConf import PartPropSvc
25svcMgr += PartPropSvc()
26
27#--------------------------------------------------------------
28# Private Application Configuration options
29#--------------------------------------------------------------
30svcMgr.AuditorSvc.Auditors = [ "ChronoAuditor" ]
31
32#--------------------------------------------------------------
33# Algorithms
34#--------------------------------------------------------------
35from AthenaCommon.AlgSequence import AlgSequence
36topAlg=AlgSequence()
37
38from PythiaB.PythiaBConf import PythiaB
39topAlg += PythiaB()
40PythiaB = topAlg.PythiaB
41
42from EvtGen_i.EvtGen_iConf import EvtDecay
43topAlg += EvtDecay()
44EvtDecay = topAlg.EvtDecay
45
46from GeneratorFilters.GeneratorFiltersConf import BSignalFilter
47topAlg += BSignalFilter()
48BSignalFilter = topAlg.BSignalFilter
49
50#--------------------------------------------------------------
51# Number of events to be accepted !! (default is 10)
52# re-written if use B job submition script
53# RunNumber, FirstEvent re-written if use B job submition script
54#--------------------------------------------------------------
55theApp.EvtMax = 12
56svcMgr.EventSelector.RunNumber = 1
57svcMgr.EventSelector.FirstEvent = 1
58# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
59svcMgr.MessageSvc.OutputLevel = 2
60#--------------------------------------------------------------
61# PARAMETERS SPECIFIC TO PYTHIAB
62#--------------------------------------------------------------
63include( "EvtGen_i/StopPytWeakBdecays.py" )
64
65#--------------------------------------------------------------
66# -------- PYTHIA PARAMETERS OPTIMAL FOR BEAUTY PRODUCTION --
67#--------------------------------------------------------------
68# 'msel 5' is only for fast tests!
69# for correct b-producion you should use 'msel 1'
70#include( "PythiaB/Btune.py" )
71
72PythiaB.PythiaCommand += ["pysubs ckin 3 6.",
73 "pysubs msel 1"]
74# ------------- Selections on b quarks -------------
75PythiaB.cutbq = ["7. 4.5 or 7. 4.5"]
76# ------------- Number of repeated hadronization mhadr -------------
77PythiaB.mhadr = 3.
78# ------------- For how many events store B-chain in NTUPLE -------------
79BSignalFilter.SignaltoNtup = 10
80#--------------------------------------------------------------
81# YOUR CONTROL OF EVTGEN
82#--------------------------------------------------------------
83# If you do not define a name to your Decay-table file here
84# then EvtGen will work with a default decay table DECAY.DEC
85#EvtDecay.userDecayTableName = "MYDECAY.DEC";
86#EvtGen random seed interface. Does not affect PYTHIA seeds.
87#This is a TEMPORARY FIX as it does not abide by ATLAS software rules.
88#James R Catmore, 16/2/2004
89#EvtDecay.EvtGenRandomSeed = 645754;
90
91
92
93#--------------------------------------------------------------
94# Histogram & Ntuple Persistency
95#--------------------------------------------------------------
96# Change the following line to "RootHistCnv" for ROOT persistency
97#theApp.Dlls += [ "RootHistCnv" ]
98# Change the following line to "ROOT" for ROOT persistency
99theApp.HistogramPersistency = "ROOT"
100#--------------------------------------------------------------
101# NTuple output file
102#--------------------------------------------------------------
103#RootHistSvc = Service( "RootHistSvc" )
104#HbookHistSvc.NPAWC = 1500000
105#HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
106#HistogramPersistencySvc.OutputFile = "histo.root"
107svcMgr.NTupleSvc.Output = [ "FILE1 DATAFILE='pythiaB.root' OPT='NEW' TYP='ROOT'" ]
108
109
111
112from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
113include( "GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py" )
114
115Stream1 = AthenaPoolOutputStream( "Stream1" )
116Stream1.ForceRead=TRUE
117Stream1.OutputFile = "pythiaB.pool.root"
118# 2101 = EventInfo
119# 133273 = MCTruth (HepMC)
120Stream1.ItemList += [ "2101#*", "133273#*" ]
121
122include("AthenaSealSvc/AthenaSealSvc_joboptions.py" )
123AthenaSealSvc.CheckDictionary = TRUE
124
125#==============================================================
126#
127# End of job options file
128#
129