From e3cb29b2ddeb4e41dfe047f1deb82f82380e7dbb Mon Sep 17 00:00:00 2001 From: "Muzalevsky I.A" Date: Tue, 10 Jan 2017 21:00:41 +0300 Subject: [PATCH] script for converting raw data into root file modified --- convertTektronix/read1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/convertTektronix/read1.cpp b/convertTektronix/read1.cpp index 5009e5f..c56e33b 100644 --- a/convertTektronix/read1.cpp +++ b/convertTektronix/read1.cpp @@ -83,13 +83,14 @@ void read1() { line4.ReadLine(myfile4); if( line1.IsNull() ) break; - time = 5e-04+ (j-1000*n)*1e-01; sscanf(line1.Data(), "%lf", &1); sscanf(line2.Data(), "%lf", &2); sscanf(line3.Data(), "%lf", &3); sscanf(line4.Data(), "%lf", &4); + n=j/1000; - + time = 5e-04+ (j-1000*n)*1e-01; + A1[j-1000*n] = amp1; A2[j-1000*n] = amp2; A3[j-1000*n] = amp3; -- 2.18.1