31from modularAnalysis
import inputMdst
32from modularAnalysis
import reconstructDecay
33from modularAnalysis
import matchMCTruth
34from vertex
import kFit
35from stdCharged
import stdMu
36from stdV0s
import stdKshorts
37from modularAnalysis
import variablesToNtuple
41my_path = b2.create_path()
44inputMdst(filename=b2.find_file(
'B02JpsiKs_Jpsi2mumu_Ks2pipi.root',
'examples',
False),
48stdMu(
'all', path=my_path)
50stdKshorts(path=my_path)
53reconstructDecay(
'J/psi:mm -> mu-:all mu+:all', cut=
'3.05<M<3.15', path=my_path)
57reconstructDecay(
'B0:iptube -> J/psi:mm K_S0:merged', cut=
'5.27<Mbc<5.29 and abs(deltaE)<0.1', path=my_path)
58reconstructDecay(
'B0:iptube20um -> J/psi:mm K_S0:merged', cut=
'5.27<Mbc<5.29 and abs(deltaE)<0.1', path=my_path)
62kFit(
'B0:iptube', 0.0,
'vertex', constraint=
'iptube', decay_string=
'B0 -> [J/psi -> ^mu- ^mu+] K_S0', smearing=0.0, path=my_path)
68 decay_string=
'B0 -> [J/psi -> ^mu- ^mu+] K_S0',
73matchMCTruth(
'B0:iptube', path=my_path)
74matchMCTruth(
'B0:iptube20um', path=my_path)
77B0_vars = vc.mc_truth + vc.vertex + vc.mc_vertex
80output_file =
'B2A409-KFit-SmearedIPtube.root'
82 filename=output_file, treename=
'B0tree_noSmear', path=my_path)
84 filename=output_file, treename=
'B0tree_smear20um', path=my_path)