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