Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JGeanx.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 light emission profile from EM showers.
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/geanx.root
39
40JGeanx \
41 -o $OUTPUT_FILE
42
43JPlot1D \
44 -f ${OUTPUT_FILE}:Probability \
45 -y "1e-3 4e0" \
46 -Y \
47 -> "cos(#theta)" \
48 -\^ "dP/dcos(#theta)" \
49 -T "" -o geanx.$FORMAT $BATCH
50
51JPlot1D \
52 -f ${OUTPUT_FILE}:Integral \
53 -y "1e-4 0.2" \
54 -Y \
55 -> "cos(#theta)" \
56 -\^ "P(#theta)" \
57 -T "" -o Geanx.$FORMAT $BATCH