From fc5470fac2ae5120502443410057d73bfeacdcef Mon Sep 17 00:00:00 2001 From: fuchenxi <1256257282@qq.com> Date: Sun, 22 Sep 2024 23:15:45 +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 c46c6c3..b3b2086 100644 --- a/elec/readout.py +++ b/elec/readout.py @@ -181,11 +181,12 @@ class Amplifier: def main(label): '''main function for readout.py to test the output of the given amplifier''' - + my_th1f = ROOT.TH1F("my_th1f", "my_th1f", 200, 0, 10e-9) # 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) -- GitLab