Skip to content
Snippets Groups Projects
Commit 950a1add authored by Philipp Oleynik's avatar Philipp Oleynik
Browse files

Birks correction limited to 100 MeV

parent b7e22187
Branches
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PySciProjectComponent">
<option name="PY_SCI_VIEW_SUGGESTED" value="true" />
</component>
</project>
\ No newline at end of file
......@@ -57,6 +57,9 @@ def birks_correction(energy): # Birks coefficient and parameter estimates taken
:return: Corrected energy in Mev
"""
kbirks = 0.68E-3
if energy > 100:
return energy
else:
return energy * (1 - scs.hyp2f1(1, 1 / 0.678, 1 + 1 / 0.678, -np.power(energy, 0.678) / (95 * kbirks)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment