aboutsummaryrefslogtreecommitdiff
path: root/utils/plot-energy
diff options
context:
space:
mode:
Diffstat (limited to 'utils/plot-energy')
-rwxr-xr-xutils/plot-energy5
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)