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

Fix w2weights

parent b739c0b2
No related branches found
No related tags found
1 merge request!10Single energy runs
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -301,14 +301,14 @@ class GiBUUOutput: ...@@ -301,14 +301,14 @@ class GiBUUOutput:
""" """
root_tupledata = self.arrays root_tupledata = self.arrays
energy_phase_space = self.flux_interpolation.integral(
self._energy_min, self._energy_max)
xsec = self._event_xsec( xsec = self._event_xsec(
root_tupledata root_tupledata
) * self.A #xsec_per_nucleon * no_nucleons in the core ) * self.A #xsec_per_nucleon * no_nucleons in the core
if self.flux_data is not None: if self.flux_data is not None:
inv_gen_flux = np.power( inv_gen_flux = np.power(
self.flux_interpolation(root_tupledata.lepIn_E), -1) 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 energy_factor = energy_phase_space * inv_gen_flux
else: else:
energy_factor = 1 energy_factor = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment