From f8c99fdd302b6d2190ae619681fb1cea5f74f391 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Thu, 13 Jun 2019 11:08:04 -0500 Subject: add a data cleaning cut to tag incoming muons This commit adds a data cleaning cut to tag incoming muons by looking for early OWL hits. It also significantly updates the flasher cut to catch more flashers. In particular, the flasher cut now does the following: - loops over *all* paddle cards with at least 4 hits instead of just the paddle cards with the most hits - uses QLX to look for charge outliers in the paddle card - fixes a few bugs (for example, uninitialized values in the charge array) - adds a check to to see if the given slot is early with respect to all PMTs within 4 meters to catch the case where the flashing channel is missing from the event --- utils/plot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils/plot') diff --git a/utils/plot b/utils/plot index 6aa55fa..ac93eda 100755 --- a/utils/plot +++ b/utils/plot @@ -16,6 +16,11 @@ from __future__ import print_function, division import yaml +try: + from yaml import CLoader as Loader +except ImportError: + from yaml.loader import SafeLoader as Loader + import numpy as np from scipy.stats import iqr from matplotlib.lines import Line2D @@ -77,7 +82,7 @@ if __name__ == '__main__': for filename in args.filenames: print(filename) with open(filename) as f: - data = yaml.load(f.read()) + data = yaml.load(f.read(),Loader=Loader) dx = [] dy = [] -- cgit