4if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
9source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
12set_variable DIR $JPP_DIR/examples/JAcoustics/
13set_variable WORKDIR ./
16 usage "$script <detector> <run>"
20 2) set_variable RUN $argv[2];
21 set_variable DETECTOR $argv[1];;
22 *) fatal "Wrong number of arguments.";;
27# create intemediate ROOT file for fast access
29if [[ ! -f $WORKDIR/toashort.root ]]; then
32 -@ "detid = `getDetector -D $DETECTOR`" \
35 -o $WORKDIR/toa.root \
40 -f $WORKDIR/toa.root \