aboutsummaryrefslogtreecommitdiff
path: root/src/muon.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-14 15:31:20 -0500
committertlatorre <tlatorre@uchicago.edu>2019-06-14 15:31:20 -0500
commitb1e355f5249126f8a5bec4eab427bfe260dfb1a3 (patch)
tree4357f8fce80ee772d66a7d12bc9e4ec94e1f83fd /src/muon.h
parent46b88c43a669fbdc0fd6438de5ecf6f02ee08677 (diff)
downloadsddm-b1e355f5249126f8a5bec4eab427bfe260dfb1a3.tar.gz
sddm-b1e355f5249126f8a5bec4eab427bfe260dfb1a3.tar.bz2
sddm-b1e355f5249126f8a5bec4eab427bfe260dfb1a3.zip
set the maximum kinetic energy in the fit dynamically based on particle ID
The range and energy loss tables have different maximum values for electrons, muons, and protons so we have to dynamically set the maximum energy of the fit in order to avoid a GSL interpolation error. This commit adds {electron,muon,proton}_get_max_energy() functions to return the maximum energy in the tables and that is then used to set the maximum value in the fit.
Diffstat (limited to 'src/muon.h')
-rw-r--r--src/muon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/muon.h b/src/muon.h
index a8d2ea1..8e1d39e 100644
--- a/src/muon.h
+++ b/src/muon.h
@@ -30,6 +30,7 @@
* FIXME: Actually determine what this is. */
#define MUON_PHOTONS_PER_MEV 7368.0
+double muon_get_max_energy(void);
double muon_get_shower_photons(double T0, double rad);
void muon_get_position_distribution_parameters(double T0, double *a, double *b);
double muon_get_angular_distribution_alpha(double T0);