Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JOmega3D.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 JOmega3D performance.
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 DIR $JPP_DIR/examples/JGeometry3D/
27set_variable NUMBER_OF_EVENTS 10000
28set_variable: FORMAT GRAPHICS_FORMAT gif
29set_variable+ BATCH GRAPHICS_BATCH -B
30
31if do_usage $*; then
32 usage "$script [working directory]"
33fi
34
35case $# in
36 1) set_variable WORKDIR $1;;
37esac
38
39
40set_variable OUTPUT_FILE $WORKDIR/omega.root
41
42$DIR/JOmega3D \
43 -o $OUTPUT_FILE \
44 -n $NUMBER_OF_EVENTS \
45 -d $DEBUG
46
47JPlot1D \
48 -f ${OUTPUT_FILE}:h0 \
49 -y "1e2 1e5" -XY \
50 -> "grid [deg]" \
51 -\^ "size" \
52 -T "" \
53 -o grid.$FORMAT $BATCH
54
55JPlot1D \
56 -f ${OUTPUT_FILE}:h1 \
57 -f ${OUTPUT_FILE}:h2 \
58 -> "grid [deg]" \
59 -\^ "angle [deg]" \
60 -L TL \
61 -T "" \
62 -o omega.$FORMAT $BATCH