Jpp 21.0.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+ NOBUOY ACOUSTICS_NOBUOY -B
20set_variable: FORMAT GRAPHICS_FORMAT gif
21set_variable+ BATCH GRAPHICS_BATCH -B
22
23if do_usage $*; then
24 usage "$script <input file>"\
25 "\nFor possible input files, see: https://git.km3net.de/calibration/input_tables/-/tree/master/data"
26fi
27
28if (( $# != 1 )); then
29 fatal "Wrong number of arguments."
30fi
31
32set_variable INPUT_FILE $argv[1]
33
34$DIR/JMechanics \
35 -f $INPUT_FILE \
36 -o $WORKDIR/mechanics.root \
37 $NOBUOY \
38 -d $DEBUG
39
40JPlot1D \
41 -f $WORKDIR/mechanics.root:\.\* \
42 -> "z [m]" \
43 -\^ "c [s^{2}/m]" \
44 -T "" \
45 -o $WORKDIR/mechanics.$FORMAT $BATCH