36 import modularAnalysis
as ma
42 my_path = b2.create_path()
45 ma.inputMdst(filename=b2.find_file(
'B2pi0D_D2hh_D2hhh_B2munu.root',
'examples',
False),
49 ma.printDataStore(path=my_path)
56 ma.fillParticleList(decayString=
'K_S0:v0 -> pi+ pi-', cut=
'0.3 < M < 0.7', path=my_path)
57 vtx.treeFit(list_name=
'K_S0:v0', conf_level=0.0, path=my_path)
58 ma.fillParticleList(decayString=
'Lambda0:v0 -> p+ pi-', cut=
'0.9 < M < 1.3', path=my_path)
59 vtx.treeFit(list_name=
'Lambda0:v0', conf_level=0.0, path=my_path)
68 ma.fillParticleList(decayString=
'pi-:all', cut=
'', path=my_path)
69 ma.fillParticleList(decayString=
'p+:all', cut=
'', path=my_path)
71 ma.reconstructDecay(decayString=
'K_S0:RD -> pi+:all pi-:all', cut=
'0.3 < M < 0.7', path=my_path)
72 vtx.treeFit(list_name=
'K_S0:RD', conf_level=0.0, path=my_path)
73 ma.reconstructDecay(decayString=
'Lambda0:RD -> p+:all pi-:all', cut=
'0.9 < M < 1.3', path=my_path)
74 vtx.treeFit(list_name=
'Lambda0:RD', conf_level=0.0, path=my_path)
77 ma.printDataStore(path=my_path)
80 ma.printList(list_name=
'K_S0:v0', full=
False, path=my_path)
81 ma.printList(list_name=
'Lambda0:v0', full=
False, path=my_path)
83 ma.printList(list_name=
'K_S0:RD', full=
False, path=my_path)
84 ma.printList(list_name=
'Lambda0:RD', full=
False, path=my_path)
87 pi0_vars = vc.kinematics + \
93 v0_vars = vc.kinematics + \
98 vu.create_daughter_aliases(pi0_vars, 0) +\
99 vu.create_daughter_aliases(pi0_vars, 1)
103 rootOutputFile =
'B2A205-LoadV0s_expert.root'
106 ma.variablesToNtuple(treename=
'kshort_v0',
107 decayString=
'K_S0:v0',
109 filename=rootOutputFile,
113 ma.variablesToNtuple(treename=
'kshort_rd',
114 decayString=
'K_S0:RD',
116 filename=rootOutputFile,
120 ma.variablesToNtuple(treename=
'lambda_v0',
121 decayString=
'Lambda0:v0',
123 filename=rootOutputFile,
127 ma.variablesToNtuple(treename=
'lambda_rd',
128 decayString=
'Lambda0:RD',
130 filename=rootOutputFile,