Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JUTCProfile.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 UTC profiling.
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 DEBUG 2
25set_variable OUTPUT_FILE utc.root
26set_variable: FORMAT GRAPHICS_FORMAT gif
27set_variable+ BATCH GRAPHICS_BATCH -B
28
29if do_usage $*; then
30 usage "$script <input file> [output file]"
31fi
32
33case $# in
34 2) set_variable OUTPUT_FILE $2;&
35 1) set_variable INPUT_FILE $1;;
36esac
37
38if (( 1 )); then
39
40 check_input_file $INPUT_FILE
41
42 $JPP_DIR/examples/JDAQ/JUTCProfile \
43 -f $INPUT_FILE \
44 -o $OUTPUT_FILE \
45 -d $DEBUG
46
47fi
48
49if (( 1 )); then
50
51 JPlot1D \
52 -f ${OUTPUT_FILE}:UTC \
53 -T "UTC" \
54 -> "100 ms" \
55 -\^ "time [ns]" \
56 -w 500x500 \
57 -L TR \
58 -o UTC.$FORMAT $BATCH
59
60fi
61
62if (( 1 )); then
63
64 JPlot1D \
65 -f ${OUTPUT_FILE}:dt \
66 -T "UTC" \
67 -> "#Deltat [ns]" \
68 -\^ "number of events [a.u.]" \
69 -w 500x500 \
70 -L TR \
71 -o utc.$FORMAT $BATCH
72
73fi