32from modularAnalysis
import inputMdst
33from modularAnalysis
import reconstructDecay
34from modularAnalysis
import matchMCTruth
35from vertex
import raveFit
36from modularAnalysis
import buildRestOfEvent
37from modularAnalysis
import fillParticleList
38from vertex
import TagV
39from stdCharged
import stdMu
42from modularAnalysis
import variablesToNtuple
50my_path = b2.create_path()
53inputMdst(filename=b2.find_file(
'B02JpsiKs_Jpsi2mumu_Ks2pipi.root',
'examples',
False),
59stdMu(
'loose', path=my_path)
63fillParticleList(
'K_S0:pipi -> pi+ pi-',
'0.4 < M < 0.6', path=my_path)
67reconstructDecay(
'J/psi:mumu -> mu+:loose mu-:loose',
'3.0 < M < 3.2', path=my_path)
71reconstructDecay(
'B0:jpsiks -> J/psi:mumu K_S0:pipi',
'5.2 < M < 5.4', path=my_path)
74matchMCTruth(
'B0:jpsiks', path=my_path)
78raveFit(
'B0:jpsiks', 0.0, decay_string=
'B0 -> [J/psi -> ^mu+ ^mu-] K_S0', path=my_path)
81buildRestOfEvent(
'B0:jpsiks', path=my_path)
85TagV(
'B0:jpsiks',
'breco', path=my_path)
89fshars = vc.pid + vc.track + vc.mc_truth
90jpsiandk0svars = vc.inv_mass + vc.vertex + vc.mc_vertex + vc.mc_truth
91bvars = vc.inv_mass + vc.deltae_mbc + \
92 vc.vertex + vc.mc_vertex + vc.mc_truth + vc.tag_vertex + vc.tag_vertex + \
94 vu.create_aliases_for_selected(fshars,
'B0 -> [J/psi -> ^mu+ ^mu-] [K_S0 -> ^pi+ ^pi-]') + \
95 vu.create_aliases_for_selected(jpsiandk0svars,
'B0 -> [^J/psi -> mu+ mu-] [^K_S0 -> pi+ pi-]')
99output_file =
'B2A410-TagVertex.root'
101 filename=output_file, treename=
'B0tree', path=my_path)