29from modularAnalysis
import inputMdst
30from modularAnalysis
import reconstructDecay
31from modularAnalysis
import matchMCTruth
32from vertex
import kFit
33from modularAnalysis
import variablesToNtuple
34from stdPi0s
import stdPi0s
39my_path = b2.create_path()
42inputMdst(filename=b2.find_file(
'B02pi0D0_D2kpi_B2Dstarpi_Dstar2Dpi_D2kpi.root',
'examples',
False),
48stdPi0s(
'eff40_May2020Fit', path=my_path)
52reconstructDecay(
'D0:pi0pi0 -> pi0:eff40_May2020Fit pi0:eff40_May2020Fit',
'1.7 < M < 2.0', path=my_path)
56kFit(
'D0:pi0pi0', 0.0,
'mass', path=my_path)
61reconstructDecay(
'B0:all -> D0:pi0pi0 pi0:eff40_May2020Fit',
'5.24 < Mbc < 5.29 and abs(deltaE) < 1.0', path=my_path)
64matchMCTruth(
'B0:all', path=my_path)
67B0_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]')
74pi0_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')
80output_file =
'B2A401-KFit-MassFit.root'
82 filename=output_file, treename=
'b0', path=my_path)
84 filename=output_file, treename=
'pi0', path=my_path)