Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simulation
KM3BUU
Merge requests
!8
W2list
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
W2list
w2list
into
master
Overview
0
Commits
13
Pipelines
3
Changes
1
Merged
Johannes Schumann
requested to merge
w2list
into
master
3 years ago
Overview
0
Commits
13
Pipelines
3
Changes
1
Expand
Add event w2list and update header fields.
0
0
Merge request reports
Viewing commit
08699d3f
Prev
Next
Show latest version
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
08699d3f
Merge branch 'w2list' of git.km3net.de:simulation/km3buu into w2list
· 08699d3f
Johannes Schumann
authored
3 years ago
km3buu/output.py
+
3
−
1
Options
@@ -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
)
Loading