4 # ------------------------------------------------------------------------------------------
6 # Auxiliary script to test destruction and construction of detector.
8 # ------------------------------------------------------------------------------------------
11 if [ -z $JPP_DIR ]; then
12 echo "Variable JPP_DIR undefined."
16 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19 set_variable PRECISION 1.0e-3
20 set_variable WORKDIR /tmp
22 if ( do_usage $* ); then
23 usage "$script <detector file> [working directory]"
27 2) set_variable WORKDIR $2;&
28 1) set_variable DETECTOR $1;;
29 *) fatal "Wrong number of arguments."
32 set_variable CALIBRATION $WORKDIR/detector.txt
37 rm -f $WORKDIR/skeleton.detx
38 rm -f $WORKDIR/detector.detx
50 -o $WORKDIR/skeleton.detx \
55 -a $WORKDIR/skeleton.detx \
57 -o $WORKDIR/detector.detx \
64 -b $WORKDIR/detector.detx \