From 412203bfd737ca4d556f319d3efe23b071342f04 Mon Sep 17 00:00:00 2001 From: Johannes Schumann <johannes.schumann@fau.de> Date: Mon, 26 Apr 2021 09:05:34 +0200 Subject: [PATCH] Add primary field to header --- km3buu/output.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/km3buu/output.py b/km3buu/output.py index 5785b82..998f30b 100644 --- a/km3buu/output.py +++ b/km3buu/output.py @@ -103,6 +103,7 @@ EMPTY_KM3NET_HEADER_DICT = { "norma": "0 0", "tgen": "0", "simul": "" + "primary": "0" } PARTICLE_MC_STATUS = { @@ -474,6 +475,7 @@ def write_detector_file(gibuu_output, timestamp = datetime.now() header_dct["simul"] = "KM3BUU {} {}".format( version, timestamp.strftime("%Y%m%d %H%M%S")) + header_dct["primary"] = "{:d}".format(nu_type) for k, v in header_dct.items(): head.set_line(k, v) -- GitLab