4source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
 
    9set_variable:  FORMAT          GRAPHICS_FORMAT        gif
 
   10set_variable+  BATCH           GRAPHICS_BATCH         -B
 
   13    usage "$script <input file>" 
 
   17    fatal "Wrong number of arguments."
 
   20set_variable  GRAPH_TXT    $1
 
   21set_variable  GRAPH_ROOT   graph.root
 
   27let "XMIN = $(awk '{ print $1 }' $GRAPH_TXT | sort -g | head -1) - 0.05"
 
   28let "XMAX = $(awk '{ print $1 }' $GRAPH_TXT | sort -g | tail -1) + 0.50"
 
   30if (( 1 )) && [[ $GRAPH_TXT == *noise* ]]; then
 
   33        -f ${GRAPH_ROOT}:\.\*              \
 
   34        -F "[0] * pow(x,[1])"              \
 
   40        -@ "leftMargin  = 0.2"             \
 
   41        -@ "titleOffset = 1.3"             \
 
   43        -> "noise rate [Hz]"              \
 
   44        -\^ "event rate [Hz]"              \
 
   46        -y "1.0e-6 1.0e0" -Y               \
 
   48        -o noise.$FORMAT                   $BATCH
 
   51if (( 0 )) && [[ $GRAPH_TXT == *noise* ]]; then
 
   54        -@ "leftMargin  = 0.2"             \
 
   55        -@ "titleOffset = 1.3"             \
 
   56        -f ${GRAPH_ROOT}:\.\*              \
 
   57        -> "noise rate [Hz]"              \
 
   58        -\^ "event rate [Hz]"              \
 
   60        -y "1.0e-6 1.0e0" -Y               \
 
   62        -o noise.$FORMAT                   $BATCH
 
   65if [[ $GRAPH_TXT == *cpu* ]]; then
 
   68        -f ${GRAPH_ROOT}:\.\*              \
 
   69        -F "[0] * pow(x,[1])"              \
 
   75        -@ "leftMargin  = 0.2"             \
 
   76        -@ "titleOffset = 1.3"             \
 
   78        -> "noise rate [Hz]"              \
 
   87rm -f $GRAPH_ROOT >& /dev/null
 
   88rm -f fit.root    >& /dev/null