Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JPizza.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 run JPizza.
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 OUTPUT_FILE $WORKDIR/pizza.root
27
28
29if do_usage $*; then
30 usage "$script (input file)+ <output file>"\
31 "\nNote that if more than one input file is specified, all other arguments must be provided."
32fi
33
34case $# in
35 2) set_variable OUTPUT_FILE $2;&
36 1) set_variable INPUT_FILE $1;;
37 0) exit;;
38 *) set_variable INPUT_FILE $argv[1,-2]
39 set_variable OUTPUT_FILE $argv[-1];;
40esac
41
42
43if (( 1 )); then
44
45 JPizza \
46 -f ${INPUT_FILE} \
47 -o ${OUTPUT_FILE} \
48 -d ${DEBUG} --!
49
50 JPrintDomino \
51 -f ${OUTPUT_FILE}
52
53fi
54
55
56if (( 1 )); then
57
58 JPlot1D \
59 -f ${OUTPUT_FILE}:hn \
60 -y "0.5 1.0e3" -Y \
61 -> "number of muons" \
62 -\^ "number of events [a.u.]" \
63 -T ""
64
65fi
66
67
68if (( 1 )); then
69
70 JPlot1D \
71 -f ${OUTPUT_FILE}:he \
72 -y "0.5 1.0e3" -Y \
73 -> "E_{#mu}" \
74 -\^ "number of events [a.u.]" \
75 -T ""
76
77fi
78
79
80if (( 1 )); then
81
82 JPlot2D \
83 -f ${OUTPUT_FILE}:h2 \
84 -O COLZ \
85 -> "R^{2} [m^{2}]" \
86 -< "z [m]"
87
88fi