25import modularAnalysis
as ma
28from stdPi0s
import stdPi0s
31my_path = b2.create_path()
34ma.inputMdst(filename=b2.find_file(
'B02D0pi0_D02pi0pi0.root',
'examples',
False),
42stdPi0s(listtype=
'eff40_May2020Fit', path=my_path)
46ma.reconstructDecay(decayString=
'D0:pi0pi0 -> pi0:eff40_May2020Fit pi0:eff40_May2020Fit',
53ma.reconstructDecay(decayString=
'B0:all -> D0:pi0pi0 pi0:eff40_May2020Fit',
54 cut=
'5.24 < Mbc < 5.29 and abs(deltaE) < 1.0',
58ma.matchMCTruth(list_name=
'B0:all',
63B0_vars = vc.inv_mass + \
65 vu.create_aliases_for_selected(
66 list_of_variables=vc.inv_mass + vc.mc_truth,
67 decay_string=
'B0 -> ^D0 ^pi0') + \
68 vu.create_aliases_for_selected(
69 list_of_variables=vc.cluster,
70 decay_string=
'B0 -> D0 [pi0 -> ^gamma ^gamma]')
72pi0_vars = vc.mc_truth + \
74 [
'extraInfo(BDT)',
'decayAngle(0)',
'weightedAverageECLTime'] + \
75 vu.create_aliases_for_selected(
76 list_of_variables=vc.cluster + vc.kinematics,
77 decay_string=
'pi0 -> ^gamma ^gamma')
80output_file =
'B2A302-B02D0Pi0-D02Pi0Pi0-Reconstruction.root'
81ma.variablesToNtuple(
'B0:all', B0_vars,
85ma.variablesToNtuple(
'pi0:eff40_May2020Fit', pi0_vars,