From c63fa2d37c90a1e28463bffce5b50ff0a7bf37e2 Mon Sep 17 00:00:00 2001
From: Johannes Schumann <johannes.schumann@fau.de>
Date: Wed, 5 May 2021 17:14:25 +0200
Subject: [PATCH] Add IN_CAN flags

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

diff --git a/km3buu/output.py b/km3buu/output.py
index e9bc89c..8d12ccd 100644
--- a/km3buu/output.py
+++ b/km3buu/output.py
@@ -143,7 +143,6 @@ W2LIST_LOOKUP = {
     "TARGETZ": 16,
     "VERINCAN": 17,
     "LEPINCAN": 18,
-    "N_RETRIES": 19
 }
 
 W2LIST_LENGTH = len(W2LIST_LOOKUP)
@@ -530,6 +529,8 @@ def write_detector_file(gibuu_output,
         evt.w2list[W2LIST_LOOKUP["BY"]] = bjorkeny[mc_event_id]
         evt.w2list[W2LIST_LOOKUP["CC"]] = ichan
         evt.w2list[W2LIST_LOOKUP["ICHAN"]] = event.evType
+        evt.w2list[W2LIST_LOOKUP["VERINCAN"]] = 1
+        evt.w2list[W2LIST_LOOKUP["LEPINCAN"]] = 1
 
         # Vertex Position
         vtx_pos = np.array(geometry.random_pos())
-- 
GitLab