8 # ------------------------------------------------------------------------------------------
10 # Utility script to run JPizza.
12 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
21 source $JPP_DIR/setenv.sh $JPP_DIR
25 set_variable WORKDIR ${TMPDIR:-/tmp}/
26 set_variable OUTPUT_FILE $WORKDIR/pizza.root
30 usage "$script (input file)+ <output file>"\
31 "\nNote that if more than one input file is specified, all other arguments must be provided."
35 2) set_variable OUTPUT_FILE $2;&
36 1) set_variable INPUT_FILE $1;;
38 *) set_variable INPUT_FILE $argv[1,-2]
39 set_variable OUTPUT_FILE $argv[-1];;
59 -f ${OUTPUT_FILE}:hn \
61 -> "number of muons" \
62 -\^ "number of events [a.u.]" \
71 -f ${OUTPUT_FILE}:he \
74 -\^ "number of events [a.u.]" \
83 -f ${OUTPUT_FILE}:h2 \