Skip to content

Commit 296de84

Browse files
committed
correction to plot labels
1 parent ca7c410 commit 296de84

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

src/nectarchain/user_scripts/ltibaldo/extract_pedestals.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
# np.arange(7020, 7029),
2626
# np.arange(6543, 6552),
2727
# np.arange(7077, 7086),
28-
np.arange(7153, 7181),
29-
np.arange(7182, 7190),
28+
# np.arange(7153, 7181),
29+
# np.arange(7182, 7190),
30+
np.arange(6891, 6927),
31+
np.arange(6681, 6717),
32+
np.arange(6552, 6588),
33+
np.arange(6963, 6999),
34+
np.arange(7086, 7122),
35+
np.arange(7029, 7065),
3036
)
3137
)
3238

src/nectarchain/user_scripts/ltibaldo/pedestal_NSB.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
rms_threshold = 47
1616

1717
data = [
18-
{"NSB": 0, "runs": np.arange(7144, 7153)},
19-
{"NSB": 10.6, "runs": np.arange(7153, 7162)},
20-
{"NSB": 20.4, "runs": np.arange(7162, 7171)},
21-
{"NSB": 39.8, "runs": np.arange(7171, 7180)},
22-
{"NSB": 78.8, "runs": np.append(np.array([7180]), np.arange(7182, 7190))},
18+
{"NSB": 0, "runs": np.arange(6672, 6681)},
19+
{"NSB": 10.6, "runs": np.arange(6681, 6690)},
20+
{"NSB": 20.4, "runs": np.arange(6690, 6699)},
21+
{"NSB": 39.8, "runs": np.arange(6699, 6708)},
22+
{"NSB": 78.8, "runs": np.arange(6708, 6717)},
2323
]
24+
temp = 0.0
2425

2526
pixel_display = [100, 144, 240, 723, 816, 1034, 1516]
2627

@@ -149,7 +150,7 @@
149150
)
150151

151152
if pixel_id in pixel_display:
152-
ax.set_title("Pixel {}, T 10 deg".format(pixel_id))
153+
ax.set_title("Pixel {}, T {} deg".format(pixel_id, temp))
153154
fig.savefig(
154155
"{}/pixel_{}_{}.png".format(os.environ["FIGDIR"], pixel_id, k)
155156
)
@@ -188,13 +189,17 @@
188189
if k == 1:
189190
ax.set_yscale("log")
190191
if k == 0 and s == 0:
191-
ax.set_title("Pedestal slope (ADC/mA), hg, T 10 deg")
192+
ax.set_title("Pedestal slope (ADC/mA), hg, T {} deg".format(temp))
192193
elif k == 0 and s == 1:
193-
ax.set_title("Pedestal slope (ADC/mA), lg, T 10 deg")
194+
ax.set_title("Pedestal slope (ADC/mA), lg, T {} deg".format(temp))
194195
elif k == 1 and s == 0:
195-
ax.set_title("Pedestal width slope (ADC/sqrt(mA)), hg, T 10 deg")
196+
ax.set_title(
197+
"Pedestal width slope (ADC/sqrt(mA)), hg, T {} deg".format(temp)
198+
)
196199
elif k == 1 and s == 1:
197-
ax.set_title("Pedestal width slope (ADC/sqrt(mA)), lg, T 10 deg")
200+
ax.set_title(
201+
"Pedestal width slope (ADC/sqrt(mA)), lg, T {} deg".format(temp)
202+
)
198203
plt.axvline(np.nanmean(slopes), linestyle=":")
199204
plt.axvline(np.nanmean(slopes) - np.nanstd(slopes), linestyle=":")
200205
plt.axvline(np.nanmean(slopes) + np.nanstd(slopes), linestyle=":")

0 commit comments

Comments
 (0)