29 from modularAnalysis
import inputMdst
30 from modularAnalysis
import reconstructDecay
31 from modularAnalysis
import matchMCTruth
32 from vertex
import kFit
33 from modularAnalysis
import variablesToNtuple
34 from stdPi0s
import stdPi0s
39 my_path = b2.create_path()
42 inputMdst(filename=b2.find_file(
'B02pi0D0_D2kpi_B2Dstarpi_Dstar2Dpi_D2kpi.root',
'examples',
False),
48 stdPi0s(
'eff40_May2020Fit', path=my_path)
52 reconstructDecay(
'D0:pi0pi0 -> pi0:eff40_May2020Fit pi0:eff40_May2020Fit',
'1.7 < M < 2.0', path=my_path)
56 kFit(
'D0:pi0pi0', 0.0,
'mass', path=my_path)
61 reconstructDecay(
'B0:all -> D0:pi0pi0 pi0:eff40_May2020Fit',
'5.24 < Mbc < 5.29 and abs(deltaE) < 1.0', path=my_path)
64 matchMCTruth(
'B0:all', path=my_path)
67 B0_vars = vc.inv_mass + vc.mc_truth + \
68 vu.create_aliases_for_selected(
69 vc.inv_mass + vc.mc_truth,
71 vu.create_aliases_for_selected(
72 vc.cluster,
'B0 -> D0 [pi0 -> ^gamma ^gamma]')
74 pi0_vars = vc.mc_truth + vc.kinematics + \
75 [
'extraInfo(BDT)',
'decayAngle(0)'] + \
76 vu.create_aliases_for_selected(
77 vc.cluster + vc.kinematics,
'pi0 -> ^gamma ^gamma')
80 output_file =
'B2A401-KFit-MassFit.root'
82 filename=output_file, treename=
'b0', path=my_path)
84 filename=output_file, treename=
'pi0', path=my_path)