diff --git a/km3buu/output.py b/km3buu/output.py index 32d644ef072b68bcd9087573a49f918979a2b3d3..e9bc89ca63daaf15e0578f238d70e8f905675129 100644 --- a/km3buu/output.py +++ b/km3buu/output.py @@ -102,7 +102,8 @@ EMPTY_KM3NET_HEADER_DICT = { "coord_origin": "0 0 0", "norma": "0 0", "tgen": "0", - "simul": "" + "simul": "", + "primary": "0" } PARTICLE_MC_STATUS = { @@ -503,6 +504,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)