Jpp  debug
the software that should make you happy
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 ${TMPDIR:-/tmp}/
26 set_variable: FORMAT GRAPHICS_FORMAT gif
27 set_variable+ BATCH GRAPHICS_BATCH -B
28 
29 if do_usage $*; then
30  usage "$script [working directory]"
31 fi
32 
33 case $# in
34  1) set_variable WORKDIR $1;;
35 esac
36 
37 
38 set_variable OUTPUT_FILE $WORKDIR/geanx.root
39 
40 JGeanx \
41  -o $OUTPUT_FILE
42 
43 JPlot1D \
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 
51 JPlot1D \
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