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