8 import matplotlib.pyplot
as plt
11 plt.style.use(
"belle2")
14 var_list = [
"Jpsi_dz",
"Jpsi_mcDecayVertexZ",
"Jpsi_chiProb"]
15 df = uproot.open(
"Bd2JpsiKS.root:tree").arrays(var_list, library=
"pd")
21 fig, ax = plt.subplots(figsize=(8, 6))
23 ax.set_xlim(left=-0.1, right=0.15)
24 ax.hist(df[
"Jpsi_dz"], bins=m_bins, range=m_range, label=
r"$J/\psi$ vertex")
26 df[
"Jpsi_mcDecayVertexZ"],
33 label=
r"$J/\psi$ vertex(MC)",
35 ax.set_xlabel(
"dz[cm]")
36 ax.set_ylabel(
"Events")
38 fig.savefig(
"vertex_jpsi_dz.svg")
42 fig, ax = plt.subplots(figsize=(8, 6))
44 ax.set_xlim(left=-0.05, right=1.05)
49 label=
r"$J/\psi$ vertex",
52 ax.set_xlabel(
"p-value")
53 ax.set_ylabel(
"Events")
55 fig.savefig(
"vertex_pValue.svg")