aboutsummaryrefslogtreecommitdiff
path: root/utils/plot
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-13 11:08:04 -0500
committertlatorre <tlatorre@uchicago.edu>2019-06-13 11:08:04 -0500
commitf8c99fdd302b6d2190ae619681fb1cea5f74f391 (patch)
treea8fdb0a578a35a24697976fea2e7ea65d6c65ec7 /utils/plot
parent52133d6cc594a4a7780accdf070b61eb7f6c5628 (diff)
downloadsddm-f8c99fdd302b6d2190ae619681fb1cea5f74f391.tar.gz
sddm-f8c99fdd302b6d2190ae619681fb1cea5f74f391.tar.bz2
sddm-f8c99fdd302b6d2190ae619681fb1cea5f74f391.zip
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
Diffstat (limited to 'utils/plot')
-rwxr-xr-xutils/plot7
1 files changed, 6 insertions, 1 deletions
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 = []