From 01573cf5eb615c74b3b2ef6509e79ce972c13ce3 Mon Sep 17 00:00:00 2001
From: Johannes Schumann <johannes.schumann@fau.de>
Date: Fri, 11 Jun 2021 15:56:23 +0200
Subject: [PATCH] Fix mean xsec performance

---
 km3buu/output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/km3buu/output.py b/km3buu/output.py
index e089d77..b694620 100644
--- a/km3buu/output.py
+++ b/km3buu/output.py
@@ -259,7 +259,7 @@ class GiBUUOutput:
     @property
     def mean_xsec(self):
         if self.flux_data is None:
-            return self._event_xsec(self.arrays)
+            return lambda energy: self.energy_max
         root_tupledata = self.arrays
         energies = np.array(root_tupledata.lepIn_E)
         weights = self._event_xsec(root_tupledata)
-- 
GitLab