Jpp 21.0.0
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
43JPizza \
44 -f ${INPUT_FILE} \
45 -o ${OUTPUT_FILE} \
46 -d ${DEBUG} --!
47
48JPrintDomino \
49 -f ${OUTPUT_FILE}
50
51JPlot1D \
52 -f ${OUTPUT_FILE}:hn \
53 -x "-0.5 10.5" \
54 -Y \
55 -> "number of muons" \
56 -\^ "number of events [a.u.]" \
57 -T ""
58
59JPlot1D \
60 -f ${OUTPUT_FILE}:h0 \
61 -Y \
62 -> "#DeltaE [GeV]" \
63 -\^ "number of events [a.u.]" \
64 -T ""
65
66JPlot1D \
67 -f ${OUTPUT_FILE}:he \
68 -Y \
69 -> "E_{#mu} [GeV]" \
70 -\^ "number of events [a.u.]" \
71 -T ""
72
73JPlot2D \
74 -f ${OUTPUT_FILE}:hp \
75 -O COLZ \
76 -> "R^{2} [m^{2}]" \
77 -< "z [m]"