Jpp
JPreprocessor.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Example script to run JTriggerEfficiency.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 if [ -z $JPP_DIR ]; then
14  echo "Variable JPP_DIR undefined."
15  exit
16 fi
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR
19 
20 set_variable DEBUG 3
21 set_variable TMAX_NS 20
22 set_variable OPTION none
23 
24 DATA=(
25  "1 1 20"
26  "1 20 20"
27  "2 20 20"
28  "1 40 20"
29  "1 60 20")
30 
31 if ( do_usage $* ); then
32  usage "$script [OPTION]"
33 fi
34 
35 case $# in
36  1) set_variable OPTION $1;;
37  0) ;;
38  *) fatal "Wrong number of argumeents."
39 esac
40 
41 if (( 1 )); then
42 
43  JPreprocessor \
44  -u "$DATA[*]" \
45  -T $TMAX_NS \
46  -O $OPTION \
47  -d $DEBUG --!
48 
49 fi
50 
51