2 import matplotlib.pyplot
as plt
9 with
open(
"output.log", mode=
"r") as csv_file:
10 csv_reader = csv.reader(csv_file, delimiter=",")
12 for csv_row
in csv_reader:
17 etabin = float(csv_row[1])
18 ptvalue = float(csv_row[2])
19 exectime = float(csv_row[3])
23 pdict = ptDict[ptvalue]
26 pdict = ptDict[ptvalue]
30 vpdict = pdict[etabin]
33 vpdict = pdict[etabin]
38 plt.figure(figsize=(7, 5))
43 [i[0][0]
for i
in np.array(list(ptDict.values()))],
49 [i[1][0]
for i
in np.array(list(ptDict.values()))],
51 label=
"0.5<$\eta$<1.0",
55 [i[2][0]
for i
in np.array(list(ptDict.values()))],
57 label=
"1.0<$\eta$<1.5",
61 [i[3][0]
for i
in np.array(list(ptDict.values()))],
63 label=
"1.5<$\eta$<2.0",
67 [i[4][0]
for i
in np.array(list(ptDict.values()))],
69 label=
"2.0<$\eta$<2.5",
71 ax.set_xlabel(
"$p_T$ [GeV/c]")
72 ax.set_ylabel(
"time/track [sec]")
74 ax.set_xlim((0.09, 105))
75 plt.legend(numpoints=1)
77 plt.suptitle(
"KF timing vs. $p_T$")