ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvtGen_i
share
common
PythiaBEvtGen.py
Go to the documentation of this file.
1
22
import
AthenaCommon.AtlasUnixGeneratorJob
23
24
from
PartPropSvc.PartPropSvcConf
import
PartPropSvc
25
svcMgr += PartPropSvc()
26
27
#--------------------------------------------------------------
28
# Private Application Configuration options
29
#--------------------------------------------------------------
30
svcMgr.AuditorSvc.Auditors = [
"ChronoAuditor"
]
31
32
#--------------------------------------------------------------
33
# Algorithms
34
#--------------------------------------------------------------
35
from
AthenaCommon.AlgSequence
import
AlgSequence
36
topAlg=AlgSequence()
37
38
from
PythiaB.PythiaBConf
import
PythiaB
39
topAlg +=
PythiaB
()
40
PythiaB = topAlg.PythiaB
41
42
from
EvtGen_i.EvtGen_iConf
import
EvtDecay
43
topAlg +=
EvtDecay
()
44
EvtDecay = topAlg.EvtDecay
45
46
from
GeneratorFilters.GeneratorFiltersConf
import
BSignalFilter
47
topAlg +=
BSignalFilter
()
48
BSignalFilter = 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
#--------------------------------------------------------------
55
theApp.EvtMax = 12
56
svcMgr.EventSelector.RunNumber = 1
57
svcMgr.EventSelector.FirstEvent = 1
58
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
59
svcMgr.MessageSvc.OutputLevel = 2
60
#--------------------------------------------------------------
61
# PARAMETERS SPECIFIC TO PYTHIAB
62
#--------------------------------------------------------------
63
include(
"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
72
PythiaB.PythiaCommand += [
"pysubs ckin 3 6."
,
73
"pysubs msel 1"
]
74
# ------------- Selections on b quarks -------------
75
PythiaB.cutbq = [
"7. 4.5 or 7. 4.5"
]
76
# ------------- Number of repeated hadronization mhadr -------------
77
PythiaB.mhadr = 3.
78
# ------------- For how many events store B-chain in NTUPLE -------------
79
BSignalFilter.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
99
theApp.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"
107
svcMgr.NTupleSvc.Output = [
"FILE1 DATAFILE='pythiaB.root' OPT='NEW' TYP='ROOT'"
]
108
109
111
112
from
AthenaPoolCnvSvc.WriteAthenaPool
import
AthenaPoolOutputStream
113
include(
"GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py"
)
114
115
Stream1 = AthenaPoolOutputStream(
"Stream1"
)
116
Stream1.ForceRead=TRUE
117
Stream1.OutputFile =
"pythiaB.pool.root"
118
# 2101 = EventInfo
119
# 133273 = MCTruth (HepMC)
120
Stream1.ItemList += [
"2101#*"
,
"133273#*"
]
121
122
include(
"AthenaSealSvc/AthenaSealSvc_joboptions.py"
)
123
AthenaSealSvc.CheckDictionary = TRUE
124
125
#==============================================================
126
#
127
# End of job options file
128
#
129
BSignalFilter
Definition
BSignalFilter.h:26
PythiaBEvtGen.PythiaB
PythiaB
Definition
PythiaBEvtGen.py:40
PythiaBEvtGen.EvtDecay
EvtDecay
Definition
PythiaBEvtGen.py:44
Generated on
for ATLAS Offline Software by
1.17.0