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