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