Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hydrophone-phi:plot.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 BACKGROUND ${ACOUSTICS_BACKGROUND:+-B}
14 
15 if ( do_usage $* ); then
16  usage "$script <input file>"
17 fi
18 
19 if (( $# != 1 )); then
20  fatal "Wrong number of arguments."
21 fi
22 
23 set_variable HYDROPHONE_TXT $1
24 set_variable BASE_NAME ${${HYDROPHONE_TXT%%\.*}##*/}
25 set_variable HYDROPHONE_ROOT $WORKDIR/${BASE_NAME}.root
26 
27 if [[ ! -f $HYDROPHONE_TXT ]]; then
28  fatal "No sound hydrophone file $HYDROPHONE_TXT."
29 fi
30 
31 JGraph \
32  -f $HYDROPHONE_TXT \
33  -o $HYDROPHONE_ROOT
34 
35 set_variable HYDROPHONE_GIF $WORKDIR/${BASE_NAME}.gif
36 
37 JPlot1D \
38  -f $HYDROPHONE_ROOT:\.\* \
39  -\> "#phi [rad]" \
40  -\^ "RMS [ms]" \
41  -T "" \
42  -o $HYDROPHONE_GIF $BACKGROUND
43 
44 rm -f $HYDROPHONE_ROOT
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
then fatal Wrong number of arguments fi set_variable HYDROPHONE_TXT set_variable BASE_NAME
exit
Definition: JPizza.sh:36
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:79
then echo
do set_variable OUTPUT_DIRECTORY $WORKDIR T
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
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
then display $WORKDIR
Definition: plot-Domino.sh:127
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