4 # --------------------------------------------------------------------------------------------
6 # Steering script for the creep correction of the D0ARCA021 (133) detector.
8 # --------------------------------------------------------------------------------------------
10 if [ -z $JPP_DIR ]; then
11 echo "Variable JPP_DIR undefined."
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
17 set_variable DETECTOR_ID 133
18 set_array RUNS 17650-17660
21 usage "$script <source directory>"\
22 "\nThe source directory corresponds to a pre-calibrated D0ARCA021 detector."
26 1) set_variable DIR $1;;
27 *) fatal "Wrong number of arguments."
30 source JAcousticsToolkit.sh
32 cp -p $DIR/$ACOUSTICS_DETECTOR ./
33 cp -p $DIR/${^ACOUSTICS_AUXS}.txt ./
35 set_variable DETECTOR $ACOUSTICS_DETECTOR
38 JAcousticsEventBuilder.sh $DETECTOR $RUNS[*]
40 INPUT_FILES=(`ls KM3NeT_${(l:8::0::0:)DETECTOR_ID}_0*${^RUNS}_event.root`)
42 JKatoomba.sh $DETECTOR $INPUT_FILES[*] katoomba.root