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 ./
25 if ( do_usage $* ); then
26 usage "$script [working directory]"
33 set_variable GRAPH_TXT $WORKDIR/graph.txt
34 set_variable GRAPH_ROOT $WORKDIR/graph\[Geant4\].root
35 set_variable GEANC_ROOT $WORKDIR/geanc\[JSirene\].root
37 # number of photons per GeV
38 # from Geant4 simulation by Daniel Lopez
65 -f ${GRAPH_ROOT}:\.\* \
72 -\^ "number of photons" \
74 -o $WORKDIR/geant4.gif
82 -\^ "Geant4/JSirene" \