Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JMechanics.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3#
4# \author mdejong
5#
6version=1.0
7script=${0##*/}
8
9if [ -z $JPP_DIR ]; then
10 echo "Variable JPP_DIR undefined."
11 exit
12fi
13
14source $JPP_DIR/setenv.sh $JPP_DIR
15
16set_variable DEBUG 2
17set_variable DIR $JPP_DIR/examples/JAcoustics
18set_variable WORKDIR ${TMPDIR:-/tmp}
19set_variable: FORMAT GRAPHICS_FORMAT gif
20set_variable+ BATCH GRAPHICS_BATCH -B
21
22if do_usage $*; then
23 usage "$script <input file>"\
24 "\nFor possible input files, see: https://git.km3net.de/calibration/input_tables/-/tree/master/data"
25fi
26
27if (( $# != 1 )); then
28 fatal "Wrong number of arguments."
29fi
30
31set_variable INPUT_FILE $argv[1]
32
33$DIR/JMechanics \
34 -f $INPUT_FILE \
35 -o $WORKDIR/mechanics.root \
36 -d $DEBUG
37
38JPlot1D \
39 -f $WORKDIR/mechanics.root:\.\* \
40 -> "z [m]" \
41 -\^ "c [s^{2}/m]" \
42 -T "" \
43 -o $WORKDIR/mechanics.$FORMAT $BATCH