Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JGeane.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 muon range.
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: FORMAT GRAPHICS_FORMAT gif
27set_variable+ BATCH GRAPHICS_BATCH -B
28
29if do_usage $*; then
30 usage "$script [working directory]"
31fi
32
33case $# in
34 1) set_variable WORKDIR $1;;
35esac
36
37
38set_variable OUTPUT_FILE $WORKDIR/geane.root
39
40$JPP_DIR/examples/JPhysics/JGeane \
41 -o $OUTPUT_FILE
42
43JPlot1D \
44 -f ${OUTPUT_FILE}:h1 \
45 -XX \
46 -y "1e-1 1e5" -Y \
47 -> "E [GeV]" \
48 -\^ "R [m]" \
49 -G XY \
50 -T "" -o R.$FORMAT $BATCH
51
52JPlot2D \
53 -f ${OUTPUT_FILE}:h2 \
54 -XX \
55 -YY \
56 -O COLZ \
57 -z "1e-1 1e8" -Z \
58 -> "E [GeV]" \
59 -< "R [m]" \
60 -\^ "E [GeV]" \
61 -G XY \
62 -T "" -o E.$FORMAT $BATCH
63
64JPlot2D \
65 -f ${OUTPUT_FILE}:h3 \
66 -XX \
67 -YY \
68 -O COLZ \
69 -> "E_{1} [GeV]" \
70 -< "E_{2} [GeV]" \
71 -\^ "R [m]" \
72 -G XY \
73 -T "" -o X.$FORMAT $BATCH