diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-08-29 09:20:37 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-08-29 09:20:37 -0500 |
commit | 549d0ac83b042d982f5dc4fcd2f2846b106f76db (patch) | |
tree | 45db6833f5eddbce5d03d478d028144fe8b7388e /utils | |
parent | 57ecf60f865f889933385a01ea2f823662c52aac (diff) | |
download | sddm-549d0ac83b042d982f5dc4fcd2f2846b106f76db.tar.gz sddm-549d0ac83b042d982f5dc4fcd2f2846b106f76db.tar.bz2 sddm-549d0ac83b042d982f5dc4fcd2f2846b106f76db.zip |
add itc cut to plot-energy
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/plot-energy | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/plot-energy b/utils/plot-energy index 917b5d6..8d6cb31 100755 --- a/utils/plot-energy +++ b/utils/plot-energy @@ -61,6 +61,7 @@ DC_ESUM = 0x40 DC_OWL = 0x80 DC_OWL_TRIGGER = 0x100 DC_FTS = 0x200 +DC_ITC = 0x400 def plot_hist(df, title=None): for id, df_id in sorted(df.groupby('id')): @@ -213,7 +214,7 @@ if __name__ == '__main__': print("number of events = %i" % len(ev)) # First, do basic data cleaning which is done for all events. - ev = ev[ev.dc & (DC_JUNK | DC_CRATE_ISOTROPY | DC_QVNHIT | DC_FLASHER | DC_NECK) == 0] + ev = ev[ev.dc & (DC_JUNK | DC_CRATE_ISOTROPY | DC_QVNHIT | DC_FLASHER | DC_NECK | DC_ITC) == 0] print("number of events after data cleaning = %i" % len(ev)) @@ -282,7 +283,7 @@ if __name__ == '__main__': else: michel_sum = michel_sum.append(michel_run) - if michel_sum: + if michel_sum is not None: michel = michel_sum else: michel = pd.DataFrame(columns=follower.columns) |