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
85b1dcbb
Commit
85b1dcbb
authored
4 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Change jobcard template to flux usage
parent
30873ef3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Merge python environment
Pipeline
#12691
failed
4 years ago
Stage: test
Stage: coverage
Stage: doc
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3buu/jobcard.py
+21
-10
21 additions, 10 deletions
km3buu/jobcard.py
with
21 additions
and
10 deletions
km3buu/jobcard.py
+
21
−
10
View file @
85b1dcbb
...
...
@@ -52,7 +52,6 @@ class Jobcard(f90nml.Namelist):
input_path: str
The input path pointing to the GiBUU lookup data which should be used
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
if
"
input_path
"
in
kwargs
:
self
.
input_path
=
"
%s
"
%
input_path
...
...
@@ -84,8 +83,12 @@ def read_jobcard(filepath):
def
generate_neutrino_jobcard_template
(
process
,
flavour
,
energy
,
target
,
write_events
=
False
,
input_path
=
INPUT_PATH
):
# pragma: no cover
process
,
flavour
,
energy_limits
,
target
,
write_events
=
False
,
input_path
=
INPUT_PATH
):
# pragma: no cover
"""
Generate a jobcard for neutrino interaction
...
...
@@ -95,8 +98,8 @@ def generate_neutrino_jobcard_template(
Interaction channel [
"
CC
"
,
"
NC
"
,
"
antiCC
"
,
"
antiNC
"
]
flavour: str
Flavour [
"
electron
"
,
"
muon
"
,
"
tau
"
]
energy: float
Initial energy of the
neutrino in GeV
energy
_range
:
(
float
, float)
Energy range limits of the incoming
neutrino
flux
in GeV
target: (int, int)
(Z, A) describing the target nukleon
input_path: str
...
...
@@ -106,7 +109,8 @@ def generate_neutrino_jobcard_template(
# NEUTRINO
jc
[
"
neutrino_induced
"
][
"
process_ID
"
]
=
PROCESS_LOOKUP
[
process
.
lower
()]
jc
[
"
neutrino_induced
"
][
"
flavour_ID
"
]
=
FLAVOR_LOOKUP
[
flavour
.
lower
()]
jc
[
"
neutrino_induced
"
][
"
nuXsectionMode
"
]
=
6
jc
[
"
neutrino_induced
"
][
"
nuXsectionMode
"
]
=
XSECTIONMODE_LOOKUP
[
"
EXP_dSigmaMC
"
]
jc
[
"
neutrino_induced
"
][
"
includeDIS
"
]
=
True
jc
[
"
neutrino_induced
"
][
"
includeDELTA
"
]
=
True
jc
[
"
neutrino_induced
"
][
"
includeRES
"
]
=
True
...
...
@@ -115,18 +119,25 @@ def generate_neutrino_jobcard_template(
jc
[
"
neutrino_induced
"
][
"
include2p2hQE
"
]
=
True
jc
[
"
neutrino_induced
"
][
"
include2pi
"
]
=
False
jc
[
"
neutrino_induced
"
][
"
include2p2hDelta
"
]
=
False
jc
[
"
neutrino_induc
t
ed
"
][
"
printAbsorptionXS
"
]
=
True
jc
[
"
neutrino_induced
"
][
"
printAbsorptionXS
"
]
=
True
jc
[
"
neutrino_induced
"
][
"
nuExp
"
]
=
99
# INPUT
jc
[
"
input
"
][
"
numTimeSteps
"
]
=
0
jc
[
"
input
"
][
"
eventtype
"
]
=
5
jc
[
"
input
"
][
"
numEnsembles
"
]
=
10000
0
jc
[
"
input
"
][
"
numEnsembles
"
]
=
10000
jc
[
"
input
"
][
"
delta_T
"
]
=
0.2
jc
[
"
input
"
][
"
localEnsemble
"
]
=
True
jc
[
"
input
"
][
"
num_runs_SameEnergy
"
]
=
1
# FLUX
jc
[
"
nl_fluxcuts
"
][
"
energylimit_for_Qsrec
"
]
=
True
jc
[
"
nl_neutrino_energyFlux
"
][
"
Eflux_min
"
]
=
energy_limits
[
0
]
jc
[
"
nl_neutrino_energyFlux
"
][
"
Eflux_max
"
]
=
energy_limits
[
1
]
# TARGET
jc
[
"
target
"
][
"
Z
"
]
=
target
[
0
]
jc
[
"
target
"
][
"
A
"
]
=
target
[
1
]
# MISC
jc
[
"
neutrinoAnalysis
"
][
"
outputEvents
"
]
=
write_events
jc
[
"
neutrinoAnalysis
"
][
"
outputEvents
"
]
=
False
jc
[
"
EventOutput
"
][
"
EventFormat
"
]
=
1
jc
[
"
EventOutput
"
][
"
WritePerturbativeParticles
"
]
=
True
jc
[
"
EventOutput
"
][
"
WriteRealParticles
"
]
=
False
return
jc
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