ATLAS Offline Software
TestPythia8B.py
Go to the documentation of this file.
1 
9 
10 # General evgen config options
11 from Pythia8B_i.Pythia8B_iConf import Pythia8B_i
12 topAlg+=Pythia8B_i("Pythia8B")
13 evgenConfig.generators += ["Pythia8B"]
14 evgenConfig.description = "Sample job options for Pythia8B generation"
15 evgenConfig.keywords = ["BPHYS"]
16 evgenConfig.minevents = 5
17 
18 # Hard process
19 #topAlg.Pythia8B.Commands += ['HardQCD:all = on'] # Uncomment for MSEL1
20 topAlg.Pythia8B.Commands += ['HardQCD:gg2bbbar = on'] # Uncomment for MSEL5
21 topAlg.Pythia8B.Commands += ['HardQCD:qqbar2bbbar = on'] # Uncomment for MSEL5
22 topAlg.Pythia8B.Commands += ['PhaseSpace:pTHatMin = 7.'] # Equivalent of CKIN3
23 topAlg.Pythia8B.Commands += ['ParticleDecays:mixB = off']
24 topAlg.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
37 topAlg.Pythia8B.SelectBQuarks = True
38 topAlg.Pythia8B.SelectCQuarks = False
39 topAlg.Pythia8B.QuarkPtCut = 0.0
40 topAlg.Pythia8B.AntiQuarkPtCut = 2.5
41 topAlg.Pythia8B.QuarkEtaCut = 102.5
42 topAlg.Pythia8B.AntiQuarkEtaCut = 2.5
43 topAlg.Pythia8B.RequireBothQuarksPassCuts = True
44 topAlg.Pythia8B.VetoDoubleBEvents = True
45 
46 # Job options for closing (anti)B decays but opening B(antiB) decays
47 include ("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)
54 topAlg.Pythia8B.Commands += ['531:87:onMode = on']
55 
56 # Close all J/psi decays apart from J/psi->mumu
57 topAlg.Pythia8B.Commands += ['443:onMode = off']
58 topAlg.Pythia8B.Commands += ['443:2:onMode = on']
59 
60 # Signal topology - only events containing this sequence will be accepted
61 topAlg.Pythia8B.SignalPDGCodes = [531,443,-13,13,333,321,-321]
62 
63 # Number of repeat-hadronization loops
64 topAlg.Pythia8B.NHadronizationLoops = 10
65 
66 # List of B-species - for counting purposes (no effect on generation)
67 include("Pythia8B_i/BPDGCodes.py")
68 
69 # Final state selections
70 topAlg.Pythia8B.TriggerPDGCode = 13
71 topAlg.Pythia8B.TriggerStatePtCut = [6.0,4.0]
72 topAlg.Pythia8B.TriggerStateEtaCut = [2.5]
73 topAlg.Pythia8B.MinimumCountPerCut = [1,2]
74 
75 #Uncomment for DumpMC print-out
76 #from TruthExamples.TruthExamplesConf import DumpMC
77 #topAlg += DumpMC()
python.Include.include
include
Definition: Include.py:318