diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-08-14 11:29:22 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-08-14 11:29:22 -0500 |
commit | 8e6895f1e55290fb5ce6b7a6ff77b3819806c51f (patch) | |
tree | 70d72950737448586f19177acd8cd9c94814523a /src/fit.c | |
parent | 0949702f6f4b9b69b5212681e03e026b0a8fb5a7 (diff) | |
download | sddm-8e6895f1e55290fb5ce6b7a6ff77b3819806c51f.tar.gz sddm-8e6895f1e55290fb5ce6b7a6ff77b3819806c51f.tar.bz2 sddm-8e6895f1e55290fb5ce6b7a6ff77b3819806c51f.zip |
fix how the RMS scattering angle is calculated
The RMS scattering angle calculation comes from Equation 33.15 in the PDG
article on the passage of particles through matter. It's not entirely obvious
if this equation is correct for a long track. It seems like it should be
integrated along the track to add up the contributions at different energies,
but it's not obvious how to do that with the log term.
In any case, the way I was previously calculating it (by using the momentum and
velocity at each point along the track) was definitely wrong.
I will try this out and perhaps try to integrate it later.
Diffstat (limited to 'src/fit.c')
-rw-r--r-- | src/fit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -134,7 +134,7 @@ int main(int argc, char **argv) /* New event, so we need to fit the old event. */ iter = 0; - gsl_vector_set(x,0,1000.0); + gsl_vector_set(x,0,500.0); gsl_vector_set(x,1,100.0); gsl_vector_set(x,2,100.0); gsl_vector_set(x,3,100.0); |