Jpp 21.0.1
the software that should make you happy
Loading...
Searching...
No Matches
JEllipse2D.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to plot JEllipse2D results.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable DEBUG 2
25set_variable WORKDIR ${TMPDIR:-/tmp}/
26set_variable NUMBER_OF_POINTS 10
27set_variable: FORMAT GRAPHICS_FORMAT gif
28set_variable+ BATCH GRAPHICS_BATCH -B
29
30if do_usage $*; then
31 usage "$script [working directory]"
32fi
33
34case $# in
35 1) set_variable WORKDIR $1;;
36esac
37
38
39set_variable OUTPUT_FILE $WORKDIR/ellipse.root
40
41$JPP_DIR/examples/JGeometry2D/JEllipse2D \
42 -o $OUTPUT_FILE \
43 -n $NUMBER_OF_POINTS \
44 -d $DEBUG
45
46JPlot2D \
47 -f ${OUTPUT_FILE}:TEllipse \
48 -f ${OUTPUT_FILE}:gs \
49 -x "-5.0 +5.0" \
50 -y "-5.0 +5.0" \
51 -G XY \
52 -T "" \
53 -o ellipse.$FORMAT $BATCH