Jpp  debug
the software that should make you happy
JMatch.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to plot match criteria.
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 
21 source $JPP_DIR/setenv.sh $JPP_DIR
22 
23 
24 set_variable DEBUG 2
25 set_variable WORKDIR ${TMPDIR:-/tmp}/
26 set_variable OUTPUT_FILE $WORKDIR/match.root
27 set_variable: FORMAT GRAPHICS_FORMAT gif
28 set_variable+ BATCH GRAPHICS_BATCH -B
29 
30 if do_usage $*; then
31  usage "$script"
32 fi
33 
34 $JPP_DIR/examples/JTrigger/JMatch \
35  -o $OUTPUT_FILE \
36  -d $DEBUG
37 
38 JPlot1D \
39  -f ${OUTPUT_FILE}:\.\* \
40  -> "D [m]" \
41  -\^ "#Deltat [ns]" \
42  -g 2 \
43  -L TL \
44  -O "][" \
45  -T "" \
46  -o match.$FORMAT $BATCH