4 if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
11 set_variable: DEBUG ACOUSTICS_DEBUG 2
12 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: QUALITY_FACTOR ACOUSTICS_QUALITYFACTOR 2.0e3
14 set_variable: FORMAT GRAPHICS_FORMAT gif
15 set_variable+ BATCH GRAPHICS_BATCH -B
18 usage "$script <detector identifier> (run[-run])+"\
19 "\nAuxiliary script to monitor acoustic data from database."
23 set_variable DETECTOR_ID $argv[1]
24 set_array RUNS $argv[2,-1]
26 fatal "Wrong number of arguments."
35 for RUN in $RUNS[*]; do
37 set_variable INPUT_FILE $WORKDIR/KM3NeT_${(l:8::0::0:)DETECTOR_ID}_${(l:8::0::0:)RUN}_toashort.root
39 if [[ ! -f $INPUT_FILE ]]; then
43 -@ "detid = `getDetector -D $DETECTOR_ID`" \
46 -@ "QUALITYFACTOR >= $QUALITY_FACTOR" \
51 if [[ -f $INPUT_FILE ]]; then
52 INPUT_FILES+=($INPUT_FILE)
56 $JPP_DIR/examples/JDB/JToAshortMonitor \
58 -o ${TMPDIR:-/tmp}/toashort.root \
62 -f ${TMPDIR:-/tmp}/toashort.root:quality \
64 -\^ "number of entries" \
68 -o $WORKDIR/quality.$FORMAT $BATCH
72 -f ${TMPDIR:-/tmp}/toashort.root:toa \
73 -\^ "log10(quality)" \
79 -o $WORKDIR/toa.$FORMAT $BATCH