31 from modularAnalysis
import inputMdst
32 from modularAnalysis
import reconstructDecay
33 from modularAnalysis
import matchMCTruth
34 from vertex
import kFit
35 from stdCharged
import stdMu
36 from stdV0s
import stdKshorts
37 from modularAnalysis
import variablesToNtuple
41 my_path = b2.create_path()
44 inputMdst(filename=b2.find_file(
'B02JpsiKs_Jpsi2mumu_Ks2pipi.root',
'examples',
False),
48 stdMu(
'all', path=my_path)
50 stdKshorts(path=my_path)
53 reconstructDecay(
'J/psi:mm -> mu-:all mu+:all', cut=
'3.05<M<3.15', path=my_path)
57 reconstructDecay(
'B0:iptube -> J/psi:mm K_S0:merged', cut=
'5.27<Mbc<5.29 and abs(deltaE)<0.1', path=my_path)
58 reconstructDecay(
'B0:iptube20um -> J/psi:mm K_S0:merged', cut=
'5.27<Mbc<5.29 and abs(deltaE)<0.1', path=my_path)
62 kFit(
'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',
73 matchMCTruth(
'B0:iptube', path=my_path)
74 matchMCTruth(
'B0:iptube20um', path=my_path)
77 B0_vars = vc.mc_truth + vc.vertex + vc.mc_vertex
80 output_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)