From 385df93bbc37dbb66d435a5416c7463c41663ddc Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Mon, 3 Jun 2019 17:58:27 +0200
Subject: [PATCH] Use only the DU hits for tres

---
 scripts/live_royfit.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/live_royfit.jl b/scripts/live_royfit.jl
index 91ff0d6..a9f1245 100755
--- a/scripts/live_royfit.jl
+++ b/scripts/live_royfit.jl
@@ -44,7 +44,7 @@ function main()
             fit = KM3NeT.single_du_fit(du_hits)
             push!(Q, fit.Q)
             plot!(du_hits, fit, markercolor=colours[idx], label="DU $(du)", max_z=calib.max_z)
-            write_time_residuals(TIME_RES, event, hits, fit)
+            write_time_residuals(TIME_RES, event, du_hits, fit)
         end
         if sum(Q) < 200 && n_doms > 12 && n_dus > 1
             println("Plotting...")
-- 
GitLab