Skip to content
Snippets Groups Projects
Commit 412203bf authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Add primary field to header

parent 2fd58c74
No related branches found
No related tags found
1 merge request!8W2list
Pipeline #19573 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment