7# ------------------------------------------------------------------------------------------
9# Utility script to produce the transit time probability and generator for HAMA-R12199.
11# ------------------------------------------------------------------------------------------
13source $JPP_DIR/setenv.sh $JPP_DIR
16set_variable INPUT_FILE $JPP_DIR/examples/JDetector/R12199_delayed_pulses_hist.txt
19set_variable: FORMAT GRAPHICS_FORMAT gif
20set_variable+ BATCH GRAPHICS_BATCH -B
23 usage "$script [input file]"
27 set_variable INPUT_FILE $1
28elif (( $# != 0 )); then
29 fatal "Wrong number of arguments."
32# convert control characters to newline
34set_variable TEMPORARY_FILE ${TMPDIR:-/tmp}/__${INPUT_FILE##*/}__
36cat $INPUT_FILE | tr '\r' '\n' > $TEMPORARY_FILE
38$JPP_DIR/examples/JDetector/JTTS \
47$JPP_DIR/examples/JDetector/JTransitTime \
48 -o PMT\[$TYPE\].root \
53 -f histogram.root:pmt \
54 -f histogram.root:g1 \
55 -f PMT\[$TYPE\].root:tts \