Jpp  19.1.0-rc.1
the software that should make you happy
JAcousticsTriggerMonitor.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 
11 set_variable: DEBUG ACOUSTICS_DEBUG 2
12 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: TIMESTAMP ACOUSTICS_TIMESTAMP UTC
14 set_variable: FORMAT GRAPHICS_FORMAT gif
15 set_variable+ BATCH GRAPHICS_BATCH -B
16 
17 if do_usage $*; then
18  usage "$script (input file)+"
19 fi
20 
21 if (( $# > 0 )); then
22  set_variable INPUT_FILES $argv[1,-1]
23 else
24  fatal "Wrong number of arguments."
25 fi
26 
27 set_variable MONITOR_FILE $WORKDIR/monitor.root
28 
29 $JPP_DIR/examples/JAcoustics/JAcousticsTriggerMonitor \
30  -f "$INPUT_FILES[*]" \
31  -o $MONITOR_FILE \
32  -d $DEBUG
33 
34 JPlot1D \
35  -w 1200x600 \
36  -f "${MONITOR_FILE}:G\[.*\].size" \
37  -\^ "size" \
38  -t "$TIMESTAMP" \
39  -S 0.6 \
40  -T "$RUN" \
41  -L BR \
42  -o $WORKDIR/size.$FORMAT $BATCH
43 
44 JPlot1D \
45  -w 1200x600 \
46  -f "${MONITOR_FILE}:G\[.*\].quality" \
47  -\^ "10log(quality)" \
48  -t "$TIMESTAMP" \
49  -S 0.6 \
50  -T "$RUN" \
51  -L TR \
52  -o $WORKDIR/quality.$FORMAT $BATCH
53 
54 JPlot1D \
55  -w 1200x600 \
56  -f "${MONITOR_FILE}:G\[.*\].rms" \
57  -\^ "rms [s]" \
58  -t "$TIMESTAMP" \
59  -S 0.6 \
60  -T "$RUN" \
61  -L TR \
62  -o $WORKDIR/rms.$FORMAT $BATCH
63 
64 JPlot1D \
65  -w 1200x600 \
66  -f "${MONITOR_FILE}:G\[.*\].quantile" \
67  -\^ "quantile [s]" \
68  -t "$TIMESTAMP" \
69  -S 0.6 \
70  -T "$RUN" \
71  -L TR \
72  -o $WORKDIR/quantile.$FORMAT $BATCH
73 
74 JPlot1D \
75  -w 1200x600 \
76  -f "${MONITOR_FILE}:G\[.*\].overlays" \
77  -\^ "overlays" \
78  -t "$TIMESTAMP" \
79  -S 0.6 \
80  -T "$RUN" \
81  -L BR \
82  -o $WORKDIR/overlays.$FORMAT $BATCH