8# ------------------------------------------------------------------------------------------
 
   10#             Utility script to plot number of photons - GeV for EM-showers
 
   12# ------------------------------------------------------------------------------------------
 
   14if [ -z $JPP_DIR ]; then
 
   15    echo "Variable JPP_DIR undefined."
 
   19source $JPP_DIR/setenv.sh $JPP_DIR
 
   23set_variable   WORKDIR     ./  
 
   24set_variable:  FORMAT      GRAPHICS_FORMAT        gif
 
   25set_variable+  BATCH       GRAPHICS_BATCH         -B
 
   28    usage "$script [working directory]"
 
   32    1) set_variable  WORKDIR  $1;;
 
   35set_variable    GRAPH_TXT    $WORKDIR/graph.txt
 
   36set_variable    GRAPH_ROOT   $WORKDIR/graph\[Geant4\].root
 
   37set_variable    GEANC_ROOT   $WORKDIR/geanc\[JSirene\].root
 
   39# number of photons per GeV
 
   40# from Geant4 simulation by Daniel Lopez
 
   67    -f ${GRAPH_ROOT}:\.\*         \
 
   74    -\^ "number of photons"       \
 
   76    -o $WORKDIR/geant4.$FORMAT    $BATCH
 
   84    -\^ "Geant4/JSirene"         \
 
   86    -o $WORKDIR/ratio.$FORMAT    $BATCH