aboutsummaryrefslogtreecommitdiff
path: root/src/likelihood.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-10-18 10:04:53 -0500
committertlatorre <tlatorre@uchicago.edu>2018-10-18 10:04:53 -0500
commite8efaa702e296e69d376639ebc0a70a251aaaed2 (patch)
treeaec9e00f4df29ae2f275b187e8bcbb164e043bc5 /src/likelihood.h
parent11a22cf650448e113d4fd16c51822dc23b9c1a33 (diff)
downloadsddm-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/likelihood.h')
-rw-r--r--src/likelihood.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/likelihood.h b/src/likelihood.h
index 945fc46..71f77f0 100644
--- a/src/likelihood.h
+++ b/src/likelihood.h
@@ -41,7 +41,7 @@ typedef struct particle {
size_t n;
} particle;
-particle *particle_init(int id, double T0, double rho, size_t n);
+particle *particle_init(int id, double T0, size_t n);
double particle_get_energy(double x, particle *p);
void particle_free(particle *p);
double get_expected_charge(double x, double T, double T0, double *pos, double *dir, double *pmt_pos, double *pmt_normal, double r, int reflected);