aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-23 08:48:00 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-23 08:48:00 -0500
commit213a184162e444a50f328c1106ba5fe47103d280 (patch)
treee94e6060fda6df629f194e4006db7598187bb89a /utils
parentc4d49db461b4481d04982d936c0ecdbc647ecb1b (diff)
downloadsddm-213a184162e444a50f328c1106ba5fe47103d280.tar.gz
sddm-213a184162e444a50f328c1106ba5fe47103d280.tar.bz2
sddm-213a184162e444a50f328c1106ba5fe47103d280.zip
add the 00-orphan cut to plot-energy
Diffstat (limited to 'utils')
-rwxr-xr-xutils/plot-energy3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/plot-energy b/utils/plot-energy
index 9f5b53d..6d2da9d 100755
--- a/utils/plot-energy
+++ b/utils/plot-energy
@@ -252,6 +252,9 @@ if __name__ == '__main__':
# 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 | DC_ITC | DC_BREAKDOWN) == 0]
+ # 00-orphan cut
+ ev = ev[~(ev.gtid & 0xff) == 0]
+
print("number of events after data cleaning = %i" % len(ev))
# Now, we select events tagged by the muon tag which should tag only