25import modularAnalysis
as ma
28from stdPhotons
import stdPhotons
29import stdCharged
as stdc
32my_path = b2.create_path()
35ma.inputMdst(filename=b2.find_file(
'B2rhogamma_rho2pipi.root',
'examples',
False),
43stdc.stdPi(listtype=
'loose', path=my_path)
47ma.reconstructDecay(decayString=
'rho0 -> pi+:loose pi-:loose',
54ma.reconstructDecay(decayString=
'B0 -> rho0 gamma:tight',
55 cut=
'5.2 < Mbc < 5.29 and abs(deltaE) < 2.0',
59ma.matchMCTruth(list_name=
'B0', path=my_path)
63gamma_vars = vc.cluster + vc.mc_truth + vc.kinematics
64rho_vars = vc.cluster + vc.mc_truth + vc.kinematics + vc.inv_mass
65pi_vars = vc.pid + vc.track
66b_vars = vc.kinematics + \
69 vu.create_aliases_for_selected(list_of_variables=gamma_vars,
70 decay_string=
'B0 -> rho0 ^gamma') + \
71 vu.create_aliases_for_selected(list_of_variables=rho_vars,
72 decay_string=
'B0 -> ^rho0 gamma') + \
73 vu.create_aliases_for_selected(list_of_variables=pi_vars,
74 decay_string=
'B0 -> [rho0 -> ^pi+ ^pi-] gamma')
77rootOutputFile =
'B2A304-B02RhoGamma-Reconstruction.root'
78ma.variablesToNtuple(decayString=
'B0',
80 filename=rootOutputFile,