Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JSydney.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
12 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: JOBS ACOUSTICS_JOBS 5
14 set_variable+ HYDPROPHONE ACOUSTICS_HYDROPHONE -H hydrophone.txt
15 
16 if do_usage $*; then
17  usage "$script <detector file> (input file)+ <script file>"\
18  "\nAuxiliary script for position pre-calibration."\
19  "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
20 fi
21 
22 if (( $# < 3 )); then
23  fatal "Wrong number of arguments."
24 fi
25 
26 if [[ `ps -o stat= -p $$` == *"+" ]]; then
27  echo "This script cannot interactively be used."
28  exit
29 fi
30 
32 set_array INPUT_FILES $argv[2,-2]
33 set_variable SCRIPT $argv[-1]
34 
35 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
36 
37 JAcoustics.sh $DETECTOR_ID
38 
39 CHECK_EXIT_CODE
40 
41 JSydney \
42  -a $DETECTOR \
43  -f "$INPUT_FILES[*]" \
44  -T tripod.txt \
45  -Y transmitter.txt \
46  -V sound_velocity.txt \
47  -M mechanics.txt \
48  -@ acoustics_fit_parameters.txt \
49  -! disable.txt \
50  ${HYDROPHONE} \
51  -N $JOBS \
52  -s $SCRIPT \
53  -d $DEBUG --!
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
then usage $script(input file)+< QA/QC file >" "\nAuxiliary script to produce the following QA/QC data then fatal Wrong number of arguments fi set_array INPUT_FILES $argv[1,-2] set_variable QAQC_FILE $argv[-1] mkdir p $WORKDIR set_variable ACOUSTICS_DEBUG
Definition: JQAQC.sh:80
static const double H
Planck constant [eV s].
exit
Definition: JPizza.sh:36
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then fatal Missing detector file $DETECTOR fi eval JPrintDetector a $DETECTOR O IDENTIFIER for KEY in tripod hydrophone transmitter
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JCalibrateToT a
Definition: JTuneHV.sh:116
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
* usage
do sput $STRING $FLOOR sget MODULE INPUT_FILES
Definition: JCanberra.sh:77
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition: JMuonPostfit.sh:40
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
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
static const JPBS_t HYDROPHONE(4, 5)
PBS of hydrophone
set_variable DETECTOR
then echo
Definition: JQAQC.sh:90
static JNullStream null
Null I/O stream.
Definition: JNullStream.hh:51
script
Definition: JAcoustics.sh:2
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62