aboutsummaryrefslogtreecommitdiff
path: root/utils/dc
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2021-01-05 11:10:54 -0600
committertlatorre <tlatorre@uchicago.edu>2021-01-05 11:10:54 -0600
commitda2610ffac5fc38df32f9e159cba6d5f56136938 (patch)
tree3fe9f810f5c0be4def2b32cefdb99d82044c5b3d /utils/dc
parentd65a8ff3eaf705c97d9e2f92c54c7416c09b638f (diff)
downloadsddm-da2610ffac5fc38df32f9e159cba6d5f56136938.tar.gz
sddm-da2610ffac5fc38df32f9e159cba6d5f56136938.tar.bz2
sddm-da2610ffac5fc38df32f9e159cba6d5f56136938.zip
hack to get rid of flasher and muon events in breakdown sample
Diffstat (limited to 'utils/dc')
-rwxr-xr-xutils/dc3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/dc b/utils/dc
index 39ca008..ee9a1c5 100755
--- a/utils/dc
+++ b/utils/dc
@@ -282,6 +282,9 @@ if __name__ == '__main__':
evs.append(get_events(df.filename.values, merge_fits=True))
ev = pd.concat(evs)
+ # Hack to get rid of flasher and muon events in the breakdown sample.
+ ev.breakdown &= ev.r_psup < 0.9
+
ev = ev[ev.prompt]
ev = ev[ev.nhit_cal > 100]