Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JPlotK40.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3#
4# \author mdejong
5#
6version=1.0
7script=${0##*/}
8
9# ------------------------------------------------------------------------------------------
10#
11# Utility script to plot K40 fit function.
12#
13# ------------------------------------------------------------------------------------------
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20source $JPP_DIR/setenv.sh $JPP_DIR
21
22set_variable DEBUG 2
23set_variable WORKDIR ${TMPDIR:-/tmp}/
24set_variable DIR $JPP_DIR/examples/JCalibrate
25set_variable: FORMAT GRAPHICS_FORMAT gif
26set_variable+ BATCH GRAPHICS_BATCH -B
27
28if do_usage $*; then
29 usage "$script [working directory]"
30fi
31
32case $# in
33 1) set_variable WORKDIR $1;;
34esac
35
36$DIR/JPlotK40 \
37 -o $WORKDIR/k40.root \
38 -d $DEBUG
39
40JPlot1D \
41 -w 1200x600 \
42 -f $WORKDIR/k40.root:h1 \
43 -y "0 10" \
44 -> "PMT pair" \
45 -\^ "rate [Hz]" \
46 -T "" \
47 -o k40.$FORMAT $BATCH