Jpp
JGeanx.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to plot light emission profile from EM showers.
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 
21 source $JPP_DIR/setenv.sh $JPP_DIR
22 
23 
24 set_variable DEBUG 2
25 set_variable WORKDIR /tmp/
26 
27 if ( do_usage $* ); then
28  usage "$script [working directory]"
29 fi
30 
31 case $# in
32  1) WORKDIR=$1;;
33 esac
34 
35 
36 set_variable OUTPUT_FILE $WORKDIR/geanx.root
37 
38 JGeanx \
39  -o $OUTPUT_FILE
40 
41 JPlot1D \
42  -f ${OUTPUT_FILE}:Probability \
43  -y "1e-3 4e0" \
44  -Y \
45  -> "cos(#theta)" \
46  -\^ "dP/dcos(#theta)" \
47  -T "" -o geanx.gif