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