Jpp
JEnergyCorrection.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 polt energy correction
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 if [ -z $JPP_DIR ]; then
15  echo "Variable JPP_DIR undefined."
16  exit
17 fi
18 
19 source $JPP_DIR/setenv.sh $JPP_DIR
20 
21 if ( do_usage $* ); then
22  usage "$script"
23 fi
24 
25 set_variable DEBUG 3
26 set_variable WORKDIR /tmp/
27 
28 INPUT_FILES=(${JPP_LIB}/energy_correction*.txt)
29 
30 JEnergyCorrection \
31  ${INPUT_FILES[*]/*\//-E } \
32  -o $WORKDIR/f1.root \
33  -d $DEBUG --!
34 
35 
36 JPlot1D \
37  -f $WORKDIR/f1.root:\.\* \
38  -y "1e-3 5e1" -Y \
39  -XX \
40  -> "E [GeV]" \
41  -\^ "correction" \
42  -T "" -L BR \
43  -o $WORKDIR/energy-correction.gif