Jpp 19.3.0-rc.5
the software that should make you happy
Loading...
Searching...
No Matches
JBell.sh
Go to the documentation of this file.
1#!/bin/zsh
2#
3#
4# \author mdejong
5#
6version=1.0
7script=${0##*/}
8
9# ------------------------------------------------------------------------------------------
10#
11# Example script to test JBell.
12#
13# ------------------------------------------------------------------------------------------
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20source $JPP_DIR/setenv.sh $JPP_DIR
21
22set_variable DEBUG 2
23set_variable SIGMA 0.3
24set_variable WORKDIR ${TMPDIR:-/tmp}/
25
26if do_usage $*; then
27 usage "$script [working directory]"
28fi
29
30case $# in
31 1) set_variable WORKDIR $1;;
32esac
33
34XS=(2.0 1.8 1.6 1.4 2.2 2.4)
35
36for X in $XS[*]; do
37
38 set_variable OUTPUT_FILE $WORKDIR/bell\[$X\].root
39
40 $JPP_DIR/examples/JMath/JBell \
41 -o $OUTPUT_FILE \
42 -s $SIGMA \
43 -a $X \
44 -d $DEBUG
45done
46
47JPlot1D \
48 -f$WORKDIR/bell\[${^XS}\].root:h0 \
49 -T "#sigma = $SIGMA" \
50 -O "][" \
51 -L TL
52
53rm -rf $WORKDIR/bell\[${^XS}\].root