Skip to content
Snippets Groups Projects
Commit f024e7c6 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

YAPF

parent aa22adb5
No related branches found
No related tags found
1 merge request!25Visible energy
......@@ -98,6 +98,7 @@ HE_PARAMS = {
"Mkref": 2.698,
}
@np.vectorize
def visible_energy_fraction(pdgid, energy):
"""
......@@ -132,7 +133,7 @@ def visible_energy_fraction(pdgid, energy):
weight = neutron_weight(tmp)
elif pdgid == 2122:
weight = proton_weight(tmp)
elif pdgid in [12,-12,14,-14,16,-16, -13, 13, 15, -15]:
elif pdgid in [12, -12, 14, -14, 16, -16, -13, 13, 15, -15]:
weight = 0.0
else:
weight = proton_weight(tmp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment