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