25 import modularAnalysis
as ma
28 from stdPhotons
import stdPhotons
29 import stdCharged
as stdc
32 my_path = b2.create_path()
35 ma.inputMdst(filename=b2.find_file(
'B2rhogamma_rho2pipi.root',
'examples',
False),
43 stdc.stdPi(listtype=
'loose', path=my_path)
47 ma.reconstructDecay(decayString=
'rho0 -> pi+:loose pi-:loose',
54 ma.reconstructDecay(decayString=
'B0 -> rho0 gamma:tight',
55 cut=
'5.2 < Mbc < 5.29 and abs(deltaE) < 2.0',
59 ma.matchMCTruth(list_name=
'B0', path=my_path)
63 gamma_vars = vc.cluster + vc.mc_truth + vc.kinematics
64 rho_vars = vc.cluster + vc.mc_truth + vc.kinematics + vc.inv_mass
65 pi_vars = vc.pid + vc.track
66 b_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')
77 rootOutputFile =
'B2A304-B02RhoGamma-Reconstruction.root'
78 ma.variablesToNtuple(decayString=
'B0',
80 filename=rootOutputFile,