4 # --------------------------------------------------------------------------------------------
 
    6 # Steering script for the creep correction of the D0ARCA009 (94) 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            94
 
   18 set_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."
 
   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