diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-10-18 10:04:53 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-10-18 10:04:53 -0500 |
commit | e8efaa702e296e69d376639ebc0a70a251aaaed2 (patch) | |
tree | aec9e00f4df29ae2f275b187e8bcbb164e043bc5 /src/test.c | |
parent | 11a22cf650448e113d4fd16c51822dc23b9c1a33 (diff) | |
download | sddm-e8efaa702e296e69d376639ebc0a70a251aaaed2.tar.gz sddm-e8efaa702e296e69d376639ebc0a70a251aaaed2.tar.bz2 sddm-e8efaa702e296e69d376639ebc0a70a251aaaed2.zip |
hardcode the density when computing dE/dx
Since we only have the range and dE/dx tables for light water for electrons and
protons it's not correct to use the heavy water density. Also, even though we
have both tables for muons, currently we only load the heavy water table, so we
hardcode the density to that of heavy water.
In the future, it would be nice to load both tables and use the correct one
depending on if we are fitting in the heavy or light water.
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -124,7 +124,7 @@ int test_proton_get_energy(char *err) /* Assume initial kinetic energy is 1 GeV. */ T0 = 1000.0; - p = particle_init(IDP_PROTON, T0,1.0,10000); + p = particle_init(IDP_PROTON, T0, 10000); T = particle_get_energy(1e-9,p); /* At the beginning of the track we should have roughly the same energy. */ @@ -160,7 +160,7 @@ int test_electron_get_energy(char *err) /* Assume initial kinetic energy is 1 GeV. */ T0 = 1000.0; - p = particle_init(IDP_E_MINUS, T0,1.0,10000); + p = particle_init(IDP_E_MINUS, T0, 10000); T = particle_get_energy(1e-9,p); /* At the beginning of the track we should have roughly the same energy. */ @@ -196,7 +196,7 @@ int test_muon_get_energy(char *err) /* Assume initial kinetic energy is 1 GeV. */ T0 = 1000.0; - p = particle_init(IDP_MU_MINUS, T0,1.0,10000); + p = particle_init(IDP_MU_MINUS, T0, 10000); T = particle_get_energy(1e-9,p); /* At the beginning of the track we should have roughly the same energy. */ |