8# ------------------------------------------------------------------------------------------
10# Utility script to plot time slewing from JDETECTOR::JPMTSignalProcessorInterface.
12# ------------------------------------------------------------------------------------------
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
21source $JPP_DIR/setenv.sh $JPP_DIR
25set_variable WORKDIR ${TMPDIR:-/tmp}/
26set_variable OUTPUT_FILE $WORKDIR/histogram.root
30 usage "$script [output file]"
34 1) set_variable OUTPUT_FILE $1;;
38if ( ! 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]"