Skip to content
Snippets Groups Projects

Proposal 7

Merged Johannes Schumann requested to merge proposal-7 into master
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
+ 7
5
@@ -18,6 +18,7 @@ import proposal as pp
from particle import Particle
import awkward as ak
from collections import defaultdict
import pathlib
from .config import Config
@@ -40,8 +41,9 @@ PROPOSAL_TARGET = pp.medium.AntaresWater()
def _setup_propagator(max_distance, particle_definition):
pp.InterpolationSettings.tables_path = Config().proposal_itp_tables
itp_table_path = Config().proposal_itp_tables
pathlib.Path(itp_table_path).mkdir(parents=True, exist_ok=True)
pp.InterpolationSettings.tables_path = itp_table_path
crosssection = pp.crosssection.make_std_crosssection(
particle_def=particle_definition,
target=PROPOSAL_TARGET,
@@ -50,12 +52,12 @@ def _setup_propagator(max_distance, particle_definition):
collection = pp.PropagationUtilityCollection()
collection.displacement = pp.make_displacement(crosssection, True)
collection.interaction = pp.make_interaction(crosssection, True)
collection.decay = pp.make_decay(crosssection, True)
collection.time = pp.make_time(crosssection, True)
collection.decay = pp.make_decay(crosssection, particle_definition, True)
collection.time = pp.make_time(crosssection, particle_definition, True)
utility = pp.PropagationUtility(collection=collection)
geometry = pp.geometry.Sphere(pp.Vector3D(), max_distance, 0)
geometry = pp.geometry.Sphere(pp.Cartesian3D(), max_distance)
density_distr = pp.density_distribution.density_homogeneous(
PROPOSAL_TARGET.mass_density)
Loading