summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-11-18 14:36:03 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:38 -0700
commit4809f1e7dde999e0f714aedcface9d5e7cbd179c (patch)
tree601acba30604a5e2679bdf4255102a4a1bda94cb
parentcb3758f2cde4cf49a38d6caa6c15e7c88db381c5 (diff)
downloadchroma-4809f1e7dde999e0f714aedcface9d5e7cbd179c.tar.gz
chroma-4809f1e7dde999e0f714aedcface9d5e7cbd179c.tar.bz2
chroma-4809f1e7dde999e0f714aedcface9d5e7cbd179c.zip
Fix ncorrect argument order to arctan2
-rw-r--r--chroma/generator/vertex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/generator/vertex.py b/chroma/generator/vertex.py
index 2a3bedf..513a961 100644
--- a/chroma/generator/vertex.py
+++ b/chroma/generator/vertex.py
@@ -59,7 +59,7 @@ def pi0_gun(pos_iter, dir_iter, ke_iter, t0_iter=constant(0.0), start_id=0, gamm
# In rest frame
theta_rest = np.arccos(gamma1_dir[2])
- phi_rest = np.arctan2(gamma1_dir[0], gamma1_dir[1])
+ phi_rest = np.arctan2(gamma1_dir[1], gamma1_dir[0])
# In lab frame
(gamma1_e, gamma1_dir), (gamma2_e, gamma2_dir) = \