diff --git a/km3buu/output.py b/km3buu/output.py
index 5785b820e5bb58d4634ad920f093f6b5e64ac3b9..998f30b689bea87ab7db2d694a67827ea7d1ec5a 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)