Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pre-calibration_D0ARCA020.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 # --------------------------------------------------------------------------------------------
5 #
6 # Auxiliary script to derive the geometry of the D0ARCA020 (116) detector from other detectors.
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 
18 
19 if do_usage $*; then
20  usage "$script <source directory>" \
21  "\nThe source directory corresponds to a pre-calibrated D0ARCA021 detector."
22 fi
23 
24 case $# in
25  1) set_variable DIR ${1:a};;
26  *) fatal "Wrong number of arguments."
27 esac
28 
30 set_variable TRIPOD $DIR/tripod.txt
31 
32 if [[ ! -f $DETECTOR ]]; then
33  fatal "Missing pre-calibrated D0ARCA021 input detector file"
34 fi
35 
36 if [[ ! -f $TRIPOD ]]; then
37  fatal "Missing pre-calibrated D0ARCA021 input tripod file"
38 fi
39 
40 # Apply modifications.
41 
42 JEditDetector \
43  -a $DETECTOR \
44  -@ "id=$DETECTOR_ID" \
45  -r "5 32" \
46  -o detector.datx
47 
48 JEditTripod \
49  -f $TRIPOD \
50  -r "12 13" \
51  -o tripod.txt
52 
53 JEditTransmitter \
54  -f $DIR_DETECTOR_A/transmitter.txt \
55  -r "5 32" \
56  -o transmitter.txt
57 
58 JEditHydrophone \
59  -f $DIR_DETECTOR_A/hydrophone.txt \
60  -r "5 32" \
61  -o hydrophone.txt
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O SUMMARY JPrintDAQHeader f $INPUT_FILE read A DAQ_HEADER set_variable DETECTOR_ID
Definition: JSquid.sh:28
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
exit
Definition: JPizza.sh:36
data_type r[M+1]
Definition: JPolint.hh:868
then
Definition: datalogs.sh:31
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then JCalibrateToT a
Definition: JTuneHV.sh:113
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
* usage
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
set_variable DETECTOR
do set_variable DETECTOR_TXT $WORKDIR detector
then echo
Definition: JQAQC.sh:96
then fatal Invalid tripod $TRIPOD
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null