8 # ------------------------------------------------------------------------------------------
 
   10 #     Utility script to plot time slewing from JDETECTOR::JPMTSignalProcessorInterface.
 
   12 # ------------------------------------------------------------------------------------------
 
   15 if [ -z $JPP_DIR ]; then
 
   16     echo "Variable JPP_DIR undefined."
 
   21 source $JPP_DIR/setenv.sh $JPP_DIR
 
   25 set_variable   WORKDIR      ${TMPDIR:-/tmp}/                    
 
   26 set_variable   OUTPUT_FILE  $WORKDIR/histogram.root  
 
   30     usage "$script [output file]"
 
   34     1) set_variable  OUTPUT_FILE  $1;;
 
   38 if ( ! reuse_file ${OUTPUT_FILE} ); then
 
   40     $JPP_DIR/examples/JDetector/JPMTSimulator \
 
   50         -f ${OUTPUT_FILE}:tot           \
 
   55         -> "charge hit [npe]"          \
 
   56         -\^ "time over threshold [ns]"  \
 
   65         -f ${OUTPUT_FILE}:hit           \
 
   66         -> "charge hit [npe]"          \
 
   75         -f ${OUTPUT_FILE}:2D            \
 
   77         -< "charge 1st hit [npe]"      \
 
   78         -> "delay 2nd hit [ns]"        \
 
   79         -\^ "time over threshold [ns]"