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_D0ORCA011.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 D0ORCA011 (123) 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 D1ORCA011 detector."
22 fi
23 
24 case $# in
25  1) set_variable DIR ${1:a};;
26  *) fatal "Wrong number of arguments."
27 esac
28 
29 source JAcousticsToolkit.sh
30 
32 set_variable TRIPOD $DIR/tripod.txt
33 
34 if [[ ! -f $DETECTOR ]]; then
35  fatal "Missing pre-calibrated D1ORCA011 input detector file"
36 fi
37 
38 if [[ ! -f $TRIPOD ]]; then
39  fatal "Missing pre-calibrated D1ORCA011 input tripod file"
40 fi
41 
42 # Apply modifications.
43 JEditDetector \
44  -a $DETECTOR \
45  -@ "id=$DETECTOR_ID" \
46  -o detector.datx
47 
48 JEditTripod \
49  -f $TRIPOD \
50  -r "6" \
51  -o tripod.txt
52 
53 TRIPOD=(tripod)
54 
55 cp -p $DIR/${^ACOUSTICS_AUXS:|TRIPOD}.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
then cp
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