From 704faa48b44f7b693894a92352c904abdc144eb2 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Tue, 26 Feb 2019 17:53:09 +0400 Subject: [PATCH] Draw lines for each floor --- scripts/ztplot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ztplot.py b/scripts/ztplot.py index fdff2e6..5fdd9f5 100755 --- a/scripts/ztplot.py +++ b/scripts/ztplot.py @@ -137,7 +137,13 @@ class ZTPlot(Module): axes = [axes] if n_plots == 1 else axes.flatten() + dom_zs = self.calib.detector.pmts.pos_z[ + (self.calib.detector.pmts.du == min(dus)) + & (self.calib.detector.pmts.channel_id == 0)] + for ax, du in zip(axes, dus): + for z in dom_zs: + ax.axhline(z, lw=1, color='b', alpha=0.2) du_hits = hits[hits.du == du] trig_hits = du_hits[du_hits.triggered == True] -- GitLab