Skip to content
Snippets Groups Projects

Resolve "Muon Propagation"

Merged Johannes Schumann requested to merge 8-muon-propagation into master
Files
4
+ 8
5
@@ -6,15 +6,17 @@
Initialisation script for different KM3BUU parts
Usage:
initials.py (--proposal)
initials.py (--proposal=PROPOSAL_PATH)
initials.py (-h | --help)
PROPOSAL setup crosssection tables of proposal based on the standard settings used in KM3BUU
Options:
-h --help Show this screen.
-h --help Show this screen.
--proposal=PROPOSAL_PATH Do PROPOSAL initialisations and write tables to PP_PATH
"""
import logging
from pathlib import Path
FORMAT = '%(asctime)s %(levelname)s %(filename)s -- %(message)s'
logging.basicConfig(format=FORMAT)
@@ -26,13 +28,14 @@ def main():
args = docopt(__doc__)
if args['--proposal']:
from km3buu.config import Config
tablepath = Config().proposal_itp_tables
tablepath = Path(args['--proposal'])
tablepath.mkdir(parents=True, exist_ok=True)
Config().proposal_itp_tables = str(tablepath.absolute())
logging.info(f"Writing PROPOSAL tables to: {tablepath}")
from km3buu.propagation import _setup_utility, PROPOSAL_LEPTON_DEFINITIONS, PROPOSAL_TARGET_WATER
from km3buu.propagation import _setup_utility, PROPOSAL_LEPTON_DEFINITIONS, PROPOSAL_TARGET_WATER, PROPOSAL_TARGET_ROCK
import proposal as pp
pp.InterpolationSettings.tables_path = '.'
_setup_utility(PROPOSAL_LEPTON_DEFINITIONS[13](),
PROPOSAL_TARGET_WATER)
_setup_utility(PROPOSAL_LEPTON_DEFINITIONS[15](),
Loading