4# --------------------------------------------------------------------------------------------
6# Steering script for the global-fit-of-global-fits procedure of the P0ARCW016 (233) 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 236
19set_variable: MUL ACOUSTICS_MUL -1.21e-2
20set_variable: THREADS ACOUSTICS_THREADS 32
21set_variable SINGULARITY -
22set_variable WORKDIR `pwd`
23set_variable HOMEDIR $WORKDIR
26 usage "$script <source directory> [user directory]"\
27 "\nThe source directory corresponds to a pre-calibrated D0ARCA030 detector."\
28 "\nThe user directory should be specified when this script is submitted in a batch queue."
32 2) set_variable HOMEDIR $2;&
33 1) set_variable DIR ${1:a};;
34 *) fatal "Wrong number of arguments."
37source JAcousticsToolkit.sh
39set_variable TRIPOD $DIR/tripod.txt
40set_variable DETECTOR_INITIAL detector_initial.datx
59 -a $DETECTOR_INITIAL \
63eval `JPrintDetector -a detector.datx -O SUMMARY`
65for STRING in ${STRINGS[*]}; do
67 set_variable MODULE `getModule -a detector.datx -L "$STRING 0"`
71 -M "$MODULE setz -11.7" \
77get_tripods $TRIPOD TRIPODS; FIXED_TRIPODS=(${(k)TRIPODS[*]})
79cp -p $TRIPOD tripod.txt
83# waveform identifier; emitter identifier
106cat>acoustics_trigger_parameters.txt<<EOF
113# disable transmissions
116cat>transmitter.txt<<EOF
117# Data from xxxx_baseAcousticBeacon.csv
120cat>hydrophone.txt<<EOF
121# Data from xxxx_hydrophones.csv
124JAcousticsEventBuilder.sh detector.datx $RUNS[*]
126INPUT_FILES=(`ls KM3NeT_${(l:8::0::0:)DETECTOR_ID}_0*${^RUNS}_event.root`)
133if [ ! $HOMEDIR -ef $WORKDIR ]; then
134 cp -p $HOMEDIR/$ACOUSTICS_DETECTOR $WORKDIR
135 cp -p $HOMEDIR/${^ACOUSTICS_KEYS}.txt $WORKDIR
136 cp -p $HOMEDIR/${^ACOUSTICS_AUXS}.txt $WORKDIR
137 cp -p $HOMEDIR/${^INPUT_FILES} $WORKDIR
141fix tripod $FIXED_TRIPODS[*]
143stage 1A 0 2 250.0e-6 10.0 20 0.5 0.5
144stage 1B 0 2 250.0e-6 10.0 0 0.0005 0.2
145stage 1C ${SINGULARITY}2 0 250.0e-6 10.0 20 0.3
146stage 2A ${SINGULARITY}2 0 100.0e-6 10.0 20 0.2 0.2
147stage 2C ${SINGULARITY}2 0 100.0e-6 10.0 20 0.2
148stage 3A ${SINGULARITY}2 0 50.0e-6 10.0 20 0.2 0.2
149stage 3C ${SINGULARITY}2 0 50.0e-6 10.0 20 0.2
152JSydney.sh detector.datx $INPUT_FILES[*] script.txt
154if [ ! $HOMEDIR -ef $WORKDIR ]; then