1 import matplotlib.pyplot
as plt
2 from root_pandas
import read_root
4 plt.style.use(
"belle2")
5 df = read_root(
"Bd2JpsiKS.root")
11 fig, ax = plt.subplots(figsize=(8, 6))
13 ax.set_xlim(left=-0.1, right=0.15)
14 ax.hist(df[
"Jpsi_dz"], bins=m_bins, range=m_range, label=
r"$J/\psi$ vertex")
16 df[
"Jpsi_mcDecayVertexZ"],
23 label=
r"$J/\psi$ vertex(MC)",
25 ax.set_xlabel(
"dz[cm]")
26 ax.set_ylabel(
"Events")
28 fig.savefig(
"vertex_jpsi_dz.svg")
32 fig, ax = plt.subplots(figsize=(8, 6))
34 ax.set_xlim(left=-0.05, right=1.05)
39 label=
r"$J/\psi$ vertex",
42 ax.set_xlabel(
"p-value")
43 ax.set_ylabel(
"Events")
45 fig.savefig(
"vertex_pValue.svg")