8# ------------------------------------------------------------------------------------------
10# Utility script to plot tabulated PDFs.
12# ------------------------------------------------------------------------------------------
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
21source $JPP_DIR/setenv.sh $JPP_DIR
29set_variable WORKDIR ${TMPDIR:-/tmp}
35set_variable PDF $JPP_DATA/J%p.dat
36set_variable HISTOGRAM "510 -20 +150"
38set_variable: FORMAT GRAPHICS_FORMAT gif
39set_variable+ BATCH GRAPHICS_BATCH -B
42 usage "$script [energy [distance]]"
46 2) set_variable R $2;&
47 1) set_variable E $1;;
53 for dir in NORTH EAST SOUTH WEST; do
55 echo "Generating $dir."
63 -o $WORKDIR/F\[${dir}\].root
73 -f $WORKDIR/F\[NORTH\].root:h0 \
74 -f $WORKDIR/F\[EAST\].root:h0 \
75 -f $WORKDIR/F\[SOUTH\].root:h0 \
76 -f $WORKDIR/F\[WEST\].root:h0 \
79 -\^ "dP/dt [npe/ns]" \
81 -T "E = ${E} GeV#; R = ${R} m" \
82 -o $WORKDIR/PDG.$FORMAT $BATCH