diff options
author | tlatorre <tlatorre@uchicago.edu> | 2021-01-05 11:10:54 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-01-05 11:10:54 -0600 |
commit | da2610ffac5fc38df32f9e159cba6d5f56136938 (patch) | |
tree | 3fe9f810f5c0be4def2b32cefdb99d82044c5b3d /utils | |
parent | d65a8ff3eaf705c97d9e2f92c54c7416c09b638f (diff) | |
download | sddm-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')
-rwxr-xr-x | utils/dc | 3 | ||||
-rwxr-xr-x | utils/dc-closure-test | 3 | ||||
-rwxr-xr-x | utils/plot-dc | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -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] diff --git a/utils/dc-closure-test b/utils/dc-closure-test index 82ca005..2628edb 100755 --- a/utils/dc-closure-test +++ b/utils/dc-closure-test @@ -439,6 +439,9 @@ if __name__ == '__main__': evs.append(get_events(df.filename.values, merge_fits=True, nhit_thresh=args.nhit_thresh)) 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] diff --git a/utils/plot-dc b/utils/plot-dc index acd7e7b..bd520d6 100755 --- a/utils/plot-dc +++ b/utils/plot-dc @@ -127,6 +127,9 @@ if __name__ == '__main__': evs.append(get_events([filename], merge_fits=True, mc=True)) ev = pd.concat([ev for ev in evs if len(ev) > 0]) + # Hack to get rid of flasher and muon events in the breakdown sample. + ev.breakdown &= ev.r_psup < 0.9 + ev = ev[ev.prompt & ~np.isnan(ev.fmin)] ev = ev[ev.ke > 20] |