32 from modularAnalysis
import inputMdst
33 from modularAnalysis
import reconstructDecay
34 from modularAnalysis
import matchMCTruth
35 from vertex
import raveFit
36 from stdCharged
import stdPi, stdK
37 from modularAnalysis
import variablesToNtuple
42 my_path = b2.create_path()
45 inputMdst(filename=b2.find_file(
'B02pi0D0_D2kpi_B2Dstarpi_Dstar2Dpi_D2kpi.root',
'examples',
False),
52 stdPi(
'all', path=my_path)
54 stdPi(
'loose', path=my_path)
56 stdK(
'loose', path=my_path)
60 reconstructDecay(
'D0:kpi -> K-:loose pi+:loose',
'1.8 < M < 1.9', path=my_path)
64 raveFit(
'D0:kpi', 0.0, path=my_path)
69 reconstructDecay(
'D*+ -> D0:kpi pi+:all',
70 '0.0 <= Q < 0.02 and 2.5 < useCMSFrame(p) < 5.5', path=my_path)
73 matchMCTruth(
'D*+', path=my_path)
77 raveFit(
'D*+', 0.0, path=my_path)
81 dstar_vars = vc.inv_mass + vc.mc_truth + \
82 vc.mc_flight_info + vc.flight_info
84 fs_hadron_vars = vu.create_aliases_for_selected(
85 vc.pid + vc.track + vc.mc_truth,
86 'D*+ -> [D0 -> ^K- ^pi+] ^pi+')
88 d0_vars = vu.create_aliases_for_selected(
89 vc.inv_mass + vc.mc_truth,
90 'D*+ -> ^D0 pi+',
'D0')
94 output_file =
'B2A404-Rave-VertexFit.root'
96 filename=output_file, treename=
'dsttree', path=my_path)