8 import matplotlib.pyplot
as plt
9 from root_pandas
import read_root
11 plt.style.use(
"belle2")
12 df = read_root(
"Bd2JpsiKS.root")
18 fig, ax = plt.subplots(figsize=(8, 6))
20 ax.set_xlim(left=-0.1, right=0.15)
21 ax.hist(df[
"Jpsi_dz"], bins=m_bins, range=m_range, label=
r"$J/\psi$ vertex")
23 df[
"Jpsi_mcDecayVertexZ"],
30 label=
r"$J/\psi$ vertex(MC)",
32 ax.set_xlabel(
"dz[cm]")
33 ax.set_ylabel(
"Events")
35 fig.savefig(
"vertex_jpsi_dz.svg")
39 fig, ax = plt.subplots(figsize=(8, 6))
41 ax.set_xlim(left=-0.05, right=1.05)
46 label=
r"$J/\psi$ vertex",
49 ax.set_xlabel(
"p-value")
50 ax.set_ylabel(
"Events")
52 fig.savefig(
"vertex_pValue.svg")