ATLAS Offline Software
Loading...
Searching...
No Matches
LbJpsiL.py
Go to the documentation of this file.
10theApp.setup( MONTECARLO )
11include( "PartPropSvc/PartPropSvc.py" )
12#--------------------------------------------------------------
13# Private Application Configuration options
14#--------------------------------------------------------------
15theApp.Dlls += [ "GaudiAlg" ]
16theApp.Dlls += [ "TruthExamples", "PythiaB" ]
17theApp.Dlls += [ "GaudiAud" ]
18theApp.Dlls += [ "HbookCnv" ]
19theApp.Dlls += [ "GeneratorFilters" ,"EvtGen_i" ]
20theAuditorSvc = AuditorSvc()
21theAuditorSvc.Auditors = [ "ChronoAuditor" ]
22#--------------------------------------------------------------
23# Algorithms
24#--------------------------------------------------------------
25theApp.TopAlg = ["PythiaB" , "EvtLbPolDecay", "LambdabFilter"]
26#--------------------------------------------------------------
27# Number of events to be accepted !! (default is 10)
28# re-written if use B job submition script
29# RunNumber, FirstEvent re-written if use B job submition script
30#--------------------------------------------------------------
31theApp.EvtMax = 1000
32EventSelector.RunNumber = 1
33EventSelector.FirstEvent = 1
34#-------------------------------------------------------------- # PARAMETERS SPECIFIC TO PYTHIAB
35#--------------------------------------------------------------
36include( "EvtGen_i/StopPytWeakBdecays.py" )
37#--------------------------------------------------------------
38# -------- PYTHIA PARAMETERS OPTIMAL FOR BEAUTY PRODUCTION --
39#--------------------------------------------------------------
40# 'msel 5' is only for fast tests!
41# for correct b-producion you should use 'msel 1'
42include( "PythiaB/Btune.py" )
43PythiaB = Algorithm( "PythiaB" )
44PythiaB.PythiaCommand += ["pysubs ckin 3 9.",
45 "pysubs ckin 9 -3.5",
46 "pysubs ckin 10 3.5",
47 "pysubs ckin 11 -3.5",
48 "pysubs ckin 12 3.5",
49 "pysubs msel 1"]
50# ------------- Selections on b quarks -------------
51PythiaB.cutbq = ["0. 100. or 10. 3.5"]
52# ------------- Number of repeated hadronization mhadr -------------
53PythiaB.mhadr = 15
54# ------------- Control flags on the userFinsel file -------------
55PythiaB.ForceDecayChannel = "LambdabJpsimumuLambda"
56PythiaB.DecayChannelParameters = [7.,3.] # Minimum pt of Lambdab = 7, and maximum abs(etha)=3.
57# ------------- For how many events store B-chain in NTUPLE -------------
58LambdabFilter = Algorithm( "LambdabFilter" )
59LambdabFilter.SignaltoNtup = 20000
60LambdabFilter.EtaCut = 2.7;
61LambdabFilter.PtCut = 500.;
62LambdabFilter.LowPtMuCut = 2500.;
63LambdabFilter.HighPtMuCut = 4000.;
64LambdabFilter.WriteNtuple = False
65#--------------------------------------------------------------
66# YOUR CONTROL OF EVTGEN
67#--------------------------------------------------------------
68# If you do not define a name to your Decay-table file here
69# then EvtGen will work with a default decay table DECAY.DEC
70EvtLbPolDecay = Algorithm( "EvtLbPolDecay" )
71EvtLbPolDecay.userDecayTableName = "LAMBDAB.DEC"
72# Here you set the polarization value
73EvtLbPolDecay.EvtGenPol=0.4
74# This control the production of histograms for certification
75EvtLbPolDecay.MakeHisto=False
76#--------------------------------------------------------------
77# Histogram & Ntuple Persistency
78#--------------------------------------------------------------
79#Change the following line to "RootHistCnv" for ROOT persistency
80theApp.Dlls += [ "RootHistCnv" ]
81theApp.HistogramPersistency = "ROOT"
82NtupleSvc = Service( "NtupleSvc" )
83NtupleSvc.Output = ["FILE1 DATAFILE='ntuple_LbPol.root' TYP='ROOT' OPT='NEW'"]
84#----------------------------------------------------------------
85# Pool persistency
86#----------------------------------------------------------------
87include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" )
88theApp.Dlls += [ "GeneratorObjectsAthenaPoolPoolCnv" ]
89Stream1 = Algorithm( "Stream1" )
90Stream1.ItemList += ["2101#*", "133273#*" ]
91Stream1.AcceptAlgs += ["LambdabFilter"]
92PoolSvc = Service( "PoolSvc" )
93Stream1.OutputFile = "LbPol.root.pool"
94#==============================================================
95#
96# End of job options file
97#
98
99