ATLAS Offline Software
Loading...
Searching...
No Matches
TestPythia8B.py
Go to the documentation of this file.
9
10# General evgen config options
11from Pythia8B_i.Pythia8B_iConf import Pythia8B_i
12topAlg+=Pythia8B_i("Pythia8B")
13evgenConfig.generators += ["Pythia8B"]
14evgenConfig.description = "Sample job options for Pythia8B generation"
15evgenConfig.keywords = ["BPHYS"]
16evgenConfig.minevents = 5
17
18# Hard process
19#topAlg.Pythia8B.Commands += ['HardQCD:all = on'] # Uncomment for MSEL1
20topAlg.Pythia8B.Commands += ['HardQCD:gg2bbbar = on'] # Uncomment for MSEL5
21topAlg.Pythia8B.Commands += ['HardQCD:qqbar2bbbar = on'] # Uncomment for MSEL5
22topAlg.Pythia8B.Commands += ['PhaseSpace:pTHatMin = 7.'] # Equivalent of CKIN3
23topAlg.Pythia8B.Commands += ['ParticleDecays:mixB = off']
24topAlg.Pythia8B.Commands += ['HadronLevel:all = off']
25
26# Quarkonia production mode
27# This should be used for direct charmonium or bottomonium production
28#topAlg.Pythia8B.Commands += ['Charmonium:all = on']
29#topAlg.Pythia8B.Commands += ['Bottomonium:all = on']
30# IMPORTANT: If you run in this mode you MUST also do the following
31# (1) HardQCD:all = on
32# (2) Switch off quark selection
33# (3) Set NHadronizationLoops to 1
34# The final state selections can be modified as required
35
36# Quark cuts
37topAlg.Pythia8B.SelectBQuarks = True
38topAlg.Pythia8B.SelectCQuarks = False
39topAlg.Pythia8B.QuarkPtCut = 0.0
40topAlg.Pythia8B.AntiQuarkPtCut = 2.5
41topAlg.Pythia8B.QuarkEtaCut = 102.5
42topAlg.Pythia8B.AntiQuarkEtaCut = 2.5
43topAlg.Pythia8B.RequireBothQuarksPassCuts = True
44topAlg.Pythia8B.VetoDoubleBEvents = True
45
46# Job options for closing (anti)B decays but opening B(antiB) decays
47include ("Pythia8B_i/CloseBDecays.py")
48#include ("Pythia8B_i/CloseAntiBDecays.py")
49
50# Job options for opening inclusive B->J/psi decays
51#include ("Pythia8B_i/OpenBJpsiDecays.py")
52
53# Example of setting a signal decay (Bs->J/psi phi)
54topAlg.Pythia8B.Commands += ['531:87:onMode = on']
55
56# Close all J/psi decays apart from J/psi->mumu
57topAlg.Pythia8B.Commands += ['443:onMode = off']
58topAlg.Pythia8B.Commands += ['443:2:onMode = on']
59
60# Signal topology - only events containing this sequence will be accepted
61topAlg.Pythia8B.SignalPDGCodes = [531,443,-13,13,333,321,-321]
62
63# Number of repeat-hadronization loops
64topAlg.Pythia8B.NHadronizationLoops = 10
65
66# List of B-species - for counting purposes (no effect on generation)
67include("Pythia8B_i/BPDGCodes.py")
68
69# Final state selections
70topAlg.Pythia8B.TriggerPDGCode = 13
71topAlg.Pythia8B.TriggerStatePtCut = [6.0,4.0]
72topAlg.Pythia8B.TriggerStateEtaCut = [2.5]
73topAlg.Pythia8B.MinimumCountPerCut = [1,2]
74
75#Uncomment for DumpMC print-out
76#from TruthExamples.TruthExamplesConf import DumpMC
77#topAlg += DumpMC()
Authors: James Catmore and Maria Smizanska James.Catmore@cern.ch / Maria.Smizanska@cern....
Definition Pythia8B_i.h:16