diff options
| author | tlatorre <tlatorre@uchicago.edu> | 2020-11-16 09:02:20 -0600 | 
|---|---|---|
| committer | tlatorre <tlatorre@uchicago.edu> | 2020-11-16 09:02:20 -0600 | 
| commit | 5d98fdc1bd1b0516e49a05dd8f55febec587b931 (patch) | |
| tree | f54fc4da90a06f8432116ecee7ad9a72faad9b2a /utils/chi2 | |
| parent | 9e07d3109081d4edd3210a45d991b2ad1e11ddfd (diff) | |
| download | sddm-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-x | utils/chi2 | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -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] | 
