8 # ------------------------------------------------------------------------------------------
 
   10 #             Utility script to plot number of photons - GeV for EM-showers
 
   12 # ------------------------------------------------------------------------------------------
 
   14 if [ -z $JPP_DIR ]; then
 
   15     echo "Variable JPP_DIR undefined."
 
   19 source $JPP_DIR/setenv.sh $JPP_DIR
 
   23 set_variable   WORKDIR     ./  
 
   24 set_variable:  FORMAT      GRAPHICS_FORMAT        gif
 
   25 set_variable+  BATCH       GRAPHICS_BATCH         -B
 
   28     usage "$script [working directory]"
 
   32     1) set_variable  WORKDIR  $1;;
 
   35 set_variable    GRAPH_TXT    $WORKDIR/graph.txt
 
   36 set_variable    GRAPH_ROOT   $WORKDIR/graph\[Geant4\].root
 
   37 set_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