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