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

Fix w2weights

parent 8a9b3e57
No related branches found
No related tags found
1 merge request!10Single energy runs
Pipeline #20577 passed
......@@ -301,14 +301,14 @@ class GiBUUOutput:
"""
root_tupledata = self.arrays
energy_phase_space = self.flux_interpolation.integral(
self._energy_min, self._energy_max)
xsec = self._event_xsec(
root_tupledata
) * self.A #xsec_per_nucleon * no_nucleons in the core
if self.flux_data is not None:
inv_gen_flux = np.power(
self.flux_interpolation(root_tupledata.lepIn_E), -1)
energy_phase_space = self.flux_interpolation.integral(
self._energy_min, self._energy_max)
energy_factor = energy_phase_space * inv_gen_flux
else:
energy_factor = 1
......
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