From 1fbd5bbd4c2cef76110efb9272853a9a53c65023 Mon Sep 17 00:00:00 2001 From: fuchenxi <1256257282@qq.com> Date: Sun, 22 Sep 2024 23:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elec/readout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elec/readout.py b/elec/readout.py index b3b2086..5dd229b 100644 --- a/elec/readout.py +++ b/elec/readout.py @@ -186,7 +186,7 @@ def main(label): # input signal: square pulse for i in range(21, 41): my_th1f.SetBinContent(i, 1e-5) - + ele = Amplifier([my_th1f], label) c=ROOT.TCanvas("c","canvas1",1000,1000) @@ -197,6 +197,7 @@ def main(label): ratio = origin_max/amp_max ele.amplified_current[0].Scale(ratio) ele.amplified_current[0].Draw("SAME HIST") + path = output(__file__, label) c.SaveAs(path+'/'+label+'_test.pdf') -- GitLab