8# ------------------------------------------------------------------------------------------
10# Utility script to plot shower energy.
12# ------------------------------------------------------------------------------------------
14if [ -z $JPP_DIR ]; then
15 echo "Variable JPP_DIR undefined."
19source $JPP_DIR/setenv.sh $JPP_DIR
22set_variable WORKDIR ${TMPDIR:-/tmp}/
23set_variable: FORMAT GRAPHICS_FORMAT gif
24set_variable+ BATCH GRAPHICS_BATCH -B
27 usage "$script [working directory]"
31 1) set_variable WORKDIR $1;;
34$JPP_DIR/examples/JPhysics/JRadiation2D \
35 -o $WORKDIR/radiation.root \
39for TYPE in eerad Brems gnrad; do
42 -f "$WORKDIR/radiation.root:$TYPE" \
48 -o Es-$TYPE.$FORMAT $BATCH
51rm -f $WORKDIR/radiation.root >& /dev/null