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