8 # ------------------------------------------------------------------------------------------
10 # Utility script to plot transition time spread from JDETECTOR::JPMTAnalogueSignaProcessor.
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 DIR $JPP_DIR/examples/JDetector
27 set_variable OUTPUT_FILE $WORKDIR/tt2.root
31 usage "$script [output file]"
35 1) set_variable OUTPUT_FILE $1;;
43 -f ${OUTPUT_FILE}:tt2 \
44 -F "[0]*exp(-0.5*(x-[1])*(x-[1])/([2]*[2]))" \
45 -@ "p0 = 0.8*GetMaximum" \
51 -f $WORKDIR/fit.root:tt2 \
53 -\^ "number of events [au]" \