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
053b9bd5
Commit
053b9bd5
authored
3 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Correct the labeling; ensembles instead of events
parent
95c5b9dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
Event Number
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3buu/jobcard.py
+9
-9
9 additions, 9 deletions
km3buu/jobcard.py
with
9 additions
and
9 deletions
km3buu/jobcard.py
+
9
−
9
View file @
053b9bd5
...
...
@@ -98,7 +98,7 @@ def write_jobcard(jobcard, filepath):
f90nml
.
write
(
jobcard
,
nml_file
)
def
generate_neutrino_jobcard
(
e
vent
s
,
def
generate_neutrino_jobcard
(
e
nsemble
s
,
process
,
flavour
,
energy
,
...
...
@@ -116,8 +116,8 @@ def generate_neutrino_jobcard(events,
Parameters
----------
e
vent
s: int
Simulated number of
neutrino event
s
e
nsemble
s: int
Simulated number of
ensembles per nucleon, which will result in #events < ensemble
s
process: str
Interaction channel [
"
CC
"
,
"
NC
"
,
"
antiCC
"
,
"
antiNC
"
]
flavour: str
...
...
@@ -153,17 +153,17 @@ def generate_neutrino_jobcard(events,
# TARGET
jc
[
"
target
"
][
"
z
"
]
=
target
[
1
]
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
# EVENTS
run_ensembles
=
int
(
100000
/
target
[
1
])
if
ensembles
<
run_ensembles
:
run_ensembles
=
ensembles
runs
=
1
else
:
runs
=
e
vent
s
//
run_e
vent
s
jc
[
"
input
"
][
"
numEnsembles
"
]
=
run_e
vent
s
runs
=
e
nsemble
s
//
run_e
nsemble
s
jc
[
"
input
"
][
"
numEnsembles
"
]
=
run_e
nsemble
s
jc
[
"
input
"
][
"
num_runs_SameEnergy
"
]
=
runs
# ENERGY
if
isinstance
(
energy
,
tuple
):
...
...
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