Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDAQSummaryslice.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Example script for JDAQSummaryslice.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable WORKDIR ${TMPDIR:-/tmp}/
25set_variable OUTPUT_FILE summary.root
26
27if do_usage $*; then
28 usage "$script <input file> [output file]"
29fi
30
31case $# in
32 2) set_variable OUTPUT_FILE $2;&
33 1) set_variable INPUT_FILE $1;;
34 *) fatal "Wrong number of arguments."
35esac
36
37if (( 1 )); then
38
39 print_variable INPUT_FILE OUTPUT_FILE
40 check_input_file $INPUT_FILE
41
42 timer_start
43
44 $JPP_DIR/examples/JDAQ/JDAQSummaryslice \
45 -f $INPUT_FILE \
46 -o $OUTPUT_FILE \
47 -d2
48
49 timer_stop
50 timer_print
51
52fi
53
54if (( 1 )); then
55
56 JPlot1D \
57 -f ${OUTPUT_FILE}:h0 \
58 -X \
59 -> "Rate [kHz]" \
60 -\^ "number of events / kHz [a.u.]"
61
62 JPlot1D \
63 -f ${OUTPUT_FILE}:h1 \
64 -> "high-rate veto PMT" \
65 -\^ "fraction of events [a.u.]"
66
67 JPlot1D \
68 -f ${OUTPUT_FILE}:h2 \
69 -> "FIFO" \
70 -\^ "fraction of events [a.u.]"
71
72 JPlot2D \
73 -f ${OUTPUT_FILE}:hu \
74 -> "sequence number" \
75 -< "number of packets" \
76 -Z \
77 -O COLZ
78
79fi