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
Commits
2d6cb001
Commit
2d6cb001
authored
1 year ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Limit the free particle cuts to nucleons
parent
304fc821
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!45
Free Particle Cuts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3buu/output.py
+2
-2
2 additions, 2 deletions
km3buu/output.py
with
2 additions
and
2 deletions
km3buu/output.py
+
2
−
2
View file @
2d6cb001
...
...
@@ -531,6 +531,7 @@ class GiBUUOutput:
masses
,
ak
.
from_iter
(
map
(
lambda
x
:
(
Particle
.
from_pdgid
(
x
).
mass
*
1e-3
)
**
2
,
pdgid
)))
mask
=
mask
|
~
np
.
isin
(
np
.
array
(
np
.
abs
(
pdgid
)),
[
2112
,
2212
])
return
ak
.
unflatten
(
mask
,
nums
)
@property
...
...
@@ -694,8 +695,7 @@ def write_detector_file(gibuu_output,
outfile
=
ROOT
.
TFile
.
Open
(
tmp_filename
,
"
RECREATE
"
)
tree
=
ROOT
.
TTree
(
"
E
"
,
"
KM3NeT Evt Tree
"
)
tree
.
Branch
(
"
Evt
"
,
evt
,
32000
,
4
)
for
mc_event_id
,
event
in
enumerate
(
event_data
[
start_id
:
stop_id
]):
for
mc_event_id
,
event
in
enumerate
(
event_data
[
start_id
:
stop_id
]):
mc_trk_id
=
0
total_id
=
start_id
+
mc_event_id
evt
.
clear
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment