Jpp  master_rocky-43-ge265d140c
the software that should make you happy
JPrintRunsetup.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 if do_usage $*; then
12  usage "$script <detector identifier> <run>"
13 fi
14 
15 if (( $# == 2 )); then
16  set_variable RUN $2
17  set_variable DETECTOR $1
18 else
19  fatal "Wrong number of arguments."
20 fi
21 
22 JCookie.sh
23 
24 JRuns \
25  -D $DETECTOR \
26  -@ "RUN = $RUN" \
27  -F RUNSETUPID \
28  -d 0 | read RUNSETUPID
29 
30 $JPP_DIR/examples/JDB/JPrintRunsetup \
31  -D $DETECTOR \
32  -R $RUNSETUPID
33 
34