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
88e22b07
Commit
88e22b07
authored
1 year ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Timestep option
parent
e390f69d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!48
Timestep option
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
km3buu/cmd.py
+9
-1
9 additions, 1 deletion
km3buu/cmd.py
km3buu/jobcard.py
+7
-0
7 additions, 0 deletions
km3buu/jobcard.py
with
16 additions
and
1 deletion
km3buu/cmd.py
+
9
−
1
View file @
88e22b07
...
...
@@ -60,6 +60,13 @@ ARGPARSE_GENERAL_PARAMS = [{
"
help
"
:
"
The number of nucleons/protons in the target nucleus
"
,
"
metavar
"
:
(
"
A
"
,
"
Z
"
),
"
required
"
:
True
},
{
"
option_strings
"
:
[
"
--timesteps
"
,
"
-x
"
],
"
dest
"
:
"
timesteps
"
,
"
type
"
:
int
,
"
help
"
:
"
The number of timesteps performed by GiBUU
"
,
"
required
"
:
False
"
default
"
:
-
1
},
{
"
option_strings
"
:
[
"
--geometry
"
,
"
-g
"
],
"
dest
"
:
...
...
@@ -208,7 +215,8 @@ def main():
args
.
target
,
seed
=
args
.
seed
,
fluxfile
=
fluxfile
,
do_decay
=
args
.
decay
)
do_decay
=
args
.
decay
,
timesteps
=
args
.
timesteps
)
jc
[
"
neutrinoanalysis
"
][
"
outputEvents
"
]
=
True
jc
[
"
neutrinoanalysis
"
][
"
inclusiveAnalysis
"
]
=
False
...
...
This diff is collapsed.
Click to expand it.
km3buu/jobcard.py
+
7
−
0
View file @
88e22b07
...
...
@@ -109,6 +109,7 @@ def generate_neutrino_jobcard(events,
photon_propagation
=
True
,
fluxfile
=
None
,
seed
=
None
,
timesteps
=-
1
,
input_path
=
INPUT_PATH
):
# pragma: no cover
"""
Generate a jobcard for neutrino interaction
...
...
@@ -138,6 +139,9 @@ def generate_neutrino_jobcard(events,
seed: int (default: 0)
Input seed for the random number generator in GiBUU
(0: some seed will be drawn based on system time)
timesteps: int (default: -1)
Number of timesteps done by GiBUU
(-1: Default value from GiBUU is used)
input_path: str
The input path pointing to the GiBUU lookup data which should be used
"""
...
...
@@ -151,6 +155,9 @@ def generate_neutrino_jobcard(events,
jc
[
"
target
"
][
"
a
"
]
=
target
[
0
]
# EVENTS
run_events
=
int
(
100000
/
target
[
1
])
# FSI
if
timesteps
>=
0
:
jc
[
"
input
"
][
"
numTimeSteps
"
]
=
timesteps
if
events
<
run_events
:
run_events
=
events
runs
=
1
...
...
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