aboutsummaryrefslogtreecommitdiff
path: root/utils/chi2
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-11-16 09:02:20 -0600
committertlatorre <tlatorre@uchicago.edu>2020-11-16 09:02:20 -0600
commit5d98fdc1bd1b0516e49a05dd8f55febec587b931 (patch)
treef54fc4da90a06f8432116ecee7ad9a72faad9b2a /utils/chi2
parent9e07d3109081d4edd3210a45d991b2ad1e11ddfd (diff)
downloadsddm-5d98fdc1bd1b0516e49a05dd8f55febec587b931.tar.gz
sddm-5d98fdc1bd1b0516e49a05dd8f55febec587b931.tar.bz2
sddm-5d98fdc1bd1b0516e49a05dd8f55febec587b931.zip
calculate livetime based on pulse gt and 10 MHz clock
This commit updates get_events() to calculate the livetime based on both the number of pulse gt events and the 10 MHz clock and to return it in a dictionary stored with the dataframe. I also update dm-search so that the results are now reported as a function of events/cm^3/s. Also updated radius cut to be the AV radius.
Diffstat (limited to 'utils/chi2')
-rwxr-xr-xutils/chi28
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/chi2 b/utils/chi2
index 0326e1a..39db081 100755
--- a/utils/chi2
+++ b/utils/chi2
@@ -480,10 +480,10 @@ if __name__ == '__main__':
ev_mc = ev_mc[~np.isnan(ev_mc.fmin)]
muon_mc = muon_mc[~np.isnan(muon_mc.fmin)]
- # require (r/r_psup)^3 < 0.9
- ev = ev[ev.r_psup < 0.9]
- ev_mc = ev_mc[ev_mc.r_psup < 0.9]
- muon_mc = muon_mc[muon_mc.r_psup < 0.9]
+ # require (r < av radius)
+ ev = ev[ev.r < AV_RADIUS]
+ ev_mc = ev_mc[ev_mc.r < AV_RADIUS]
+ muon_mc = muon_mc[muon_mc.r < AV_RADIUS]
# require psi < 6
ev = ev[ev.psi < 6]