Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
software/JAcoustics/JKatoomba.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 FIT ${ACOUSTICS_FIT:-2}
14 
15 if ( do_usage $* ); then
16  usage "$script <detector file> (input file)+ <output file>"
17 fi
18 
19 if (( $# < 3 )); then
20  fatal "Wrong number of arguments."
21 fi
22 
24 set_array INPUT_FILES $argv[2,-2]
25 set_variable OUTPUT_FILE $argv[-1]
26 
27 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
28 
29 source JAcoustics.sh $DETECTOR_ID
30 
31 eval JKatoomba \
32  -a $DETECTOR \
33  -f \"$INPUT_FILES[*]\" \
34  -o \$OUTPUT_FILE \
35  -T `print_tripods` \
36  -V `print_velocity` \
37  -@ `make_equation PARAMETERS` \
38  -F $FIT \
39  -u \
40  -d $DEBUG --!
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:79
then echo
* usage
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable ACOUSTICS_DEBUG
Definition: JAcoustics.sh:17
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
&set_variable OUTPUT_FILE
then $JPP_DIR software JCalibrate JCalibrateToT a
Definition: JTuneHV.sh:108
set_variable DETECTOR
script
Definition: JAcoustics.sh:2
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62