aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-08-17 10:55:06 -0500
committertlatorre <tlatorre@uchicago.edu>2020-08-17 10:55:06 -0500
commit5b4efebc67641001660bbfca1458d9a5f99ae886 (patch)
tree368c8c0c2db80550b3a64cc8c15b751e4550699e /utils
parent3b7c8820d9c6aa6804da5ef6dfb512b68a2ee3c0 (diff)
downloadsddm-5b4efebc67641001660bbfca1458d9a5f99ae886.tar.gz
sddm-5b4efebc67641001660bbfca1458d9a5f99ae886.tar.bz2
sddm-5b4efebc67641001660bbfca1458d9a5f99ae886.zip
fix bug in get_events()
ev.r -> ev_single_particle.r
Diffstat (limited to 'utils')
-rwxr-xr-xutils/sddm/plot_energy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sddm/plot_energy.py b/utils/sddm/plot_energy.py
index 93c872d..1fbe67d 100755
--- a/utils/sddm/plot_energy.py
+++ b/utils/sddm/plot_energy.py
@@ -592,7 +592,7 @@ def get_events(filenames, merge_fits=False, nhit_thresh=None):
ev['udotr'] = np.sin(ev_single_particle.theta1)*np.cos(ev_single_particle.phi1)*ev_single_particle.x + \
np.sin(ev_single_particle.theta1)*np.sin(ev_single_particle.phi1)*ev_single_particle.y + \
np.cos(ev_single_particle.theta1)*ev_single_particle.z
- ev['udotr'] /= ev.r
+ ev['udotr'] /= ev_single_particle.r
return ev