25import modularAnalysis
as ma
28import stdCharged
as stdc
31my_path = b2.create_path()
34ma.inputMdst(filename=b2.find_file(
'Dst2D0pi.root',
'examples',
False),
41stdc.stdPi(listtype=
'all', path=my_path)
43stdc.stdPi(listtype=
'loose', path=my_path)
45stdc.stdK(listtype=
'loose', path=my_path)
49ma.reconstructDecay(decayString=
'D0:kpi -> K-:loose pi+:loose', cut=
'1.8 < M < 1.9', path=my_path)
53ma.reconstructDecay(decayString=
'D*+ -> D0:kpi pi+:all', cut=
'0.0 < Q < 0.2', path=my_path)
56ma.matchMCTruth(list_name=
'D*+', path=my_path)
59dstar_vars = vc.inv_mass + vc.mc_truth
72fs_hadron_vars = vu.create_aliases_for_selected(
73 list_of_variables=vc.pid + vc.track + vc.mc_truth,
74 decay_string=
'D*+ -> [D0 -> ^K- ^pi+] ^pi+')
76d0_vars = vu.create_aliases_for_selected(
77 list_of_variables=vc.inv_mass + vc.mc_truth,
78 decay_string=
'D*+ -> ^D0 pi+',
83output_file =
'B2A301-Dstar2D0Pi-Reconstruction.root'
84ma.variablesToNtuple(
'D*+', dstar_vars + d0_vars + fs_hadron_vars,
85 filename=output_file, treename=
'dsttree', path=my_path)