ATLAS Offline Software
PythiaBEvtGen_Signal.py
Go to the documentation of this file.
1 
24 import AthenaCommon.AtlasUnixGeneratorJob
25 
26 from PartPropSvc.PartPropSvcConf import PartPropSvc
27 svcMgr += PartPropSvc()
28 
29 #--------------------------------------------------------------
30 # Private Application Configuration options
31 #--------------------------------------------------------------
32 svcMgr.AuditorSvc.Auditors = [ "ChronoAuditor" ]
33 
34 #--------------------------------------------------------------
35 # Algorithms
36 #--------------------------------------------------------------
37 from AthenaCommon.AlgSequence import AlgSequence
38 topAlg=AlgSequence()
39 
40 from PythiaB.PythiaBConf import PythiaB
41 topAlg += PythiaB()
42 PythiaB = topAlg.PythiaB
43 
44 from EvtGen_i.EvtGen_iConf import EvtDecay
45 topAlg += EvtDecay()
46 EvtDecay = topAlg.EvtDecay
47 
48 from GeneratorFilters.GeneratorFiltersConf import BSignalFilter
49 topAlg += BSignalFilter()
50 BSignalFilter = 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 #--------------------------------------------------------------
57 theApp.EvtMax = 12
58 svcMgr.EventSelector.RunNumber = 1
59 svcMgr.EventSelector.FirstEvent = 1
60 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
61 svcMgr.MessageSvc.OutputLevel = 2
62 #--------------------------------------------------------------
63 # PARAMETERS SPECIFIC TO PYTHIAB
64 #--------------------------------------------------------------
65 include( "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'
72 include( "PythiaB/Btune.py" )
73 
74 PythiaB.PythiaCommand += ["pysubs ckin 3 6.",
75  "pysubs msel 1"]
76 # ------------- Selections on b quarks -------------
77 PythiaB.cutbq = ["7. 4.5 or 7. 4.5"]
78 # ------------- Number of repeated hadronization mhadr -------------
79 PythiaB.mhadr = 3.
80 # ------------- For how many events store B-chain in NTUPLE -------------
81 BSignalFilter.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
87 EvtDecay.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
102 theApp.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"
110 svcMgr.NTupleSvc.Output = [ "FILE1 DATAFILE='pythiaB.root' OPT='NEW' TYP='ROOT'" ]
111 
112 
114 
115 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
116 include( "GeneratorObjectsAthenaPool/GeneratorObjectsAthenaPool_joboptions.py" )
117 
118 Stream1 = AthenaPoolOutputStream( "Stream1" )
119 Stream1.ForceRead=TRUE
120 Stream1.OutputFile = "pythiaB.pool.root"
121 # 2101 = EventInfo
122 # 133273 = MCTruth (HepMC)
123 Stream1.ItemList += [ "2101#*", "133273#*" ]
124 Stream1.AcceptAlgs = [ "BSignalFilter" ]
125 
126 include("AthenaSealSvc/AthenaSealSvc_joboptions.py" )
127 AthenaSealSvc.CheckDictionary = TRUE
128 
129 
130 #==============================================================
131 #
132 # End of job options file
133 #
134 
PythiaBEvtGen_Signal.PythiaB
PythiaB
Definition: PythiaBEvtGen_Signal.py:42
BSignalFilter
Definition: BSignalFilter.py:1
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.Include.include
include
Definition: Include.py:319
PythiaBEvtGen_Signal.EvtDecay
EvtDecay
Definition: PythiaBEvtGen_Signal.py:46
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144