Jpp  debug
the software that should make you happy
post-calibration_D0ARCA009.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 # --------------------------------------------------------------------------------------------
5 #
6 # Steering script for the creep correction of the D0ARCA009 (94) detector.
7 #
8 # --------------------------------------------------------------------------------------------
9 
10 if [ -z $JPP_DIR ]; then
11  echo "Variable JPP_DIR undefined."
12  exit
13 fi
14 
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
16 
17 set_variable DETECTOR_ID 94
18 set_array RUNS 12260-12269
19 
20 if do_usage $*; then
21  usage "$script <source directory>"\
22  "\nThe source directory corresponds to a pre-calibrated D0ARCA009 detector."
23 fi
24 
25 case $# in
26  1) set_variable DIR $1;;
27  *) fatal "Wrong number of arguments."
28 esac
29 
30 source JAcousticsToolkit.sh
31 
32 cp -p $DIR/$ACOUSTICS_DETECTOR ./
33 cp -p $DIR/${^ACOUSTICS_AUXS}.txt ./
34 
35 set_variable DETECTOR $ACOUSTICS_DETECTOR
36 expand_array RUNS
37 
38 JAcousticsEventBuilder.sh $DETECTOR $RUNS[*]
39 
40 INPUT_FILES=(`ls KM3NeT_${(l:8::0::0:)DETECTOR_ID}_0*${^RUNS}_event.root`)
41 
42 JKatoomba.sh $DETECTOR $INPUT_FILES[*] katoomba.root
43 
44 JCreep \
45  -a $DETECTOR \
46  -f katoomba.root \
47  -A
48 
49