Jpp
JRuns.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable DIR $JPP_DIR/examples/JDB/
12 
13 if ( do_usage $* ); then
14  usage "$script <detector identifier>"
15 fi
16 
17 case $# in
18  1) set_variable DETECTOR $1;;
19  *) fatal "Wrong number of arguments."
20 esac
21 
22 JCookie.sh
23 
24 $DIR/JRuns \
25  -D $DETECTOR \
26  -d 1