Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JPrintRunsetup.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2script=${0##*/}
3
4if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
6 exit
7fi
8
9source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10
11if do_usage $*; then
12 usage "$script <detector identifier> <run>"
13fi
14
15if (( $# == 2 )); then
16 set_variable RUN $2
17 set_variable DETECTOR $1
18else
19 fatal "Wrong number of arguments."
20fi
21
22JCookie.sh
23
24JRuns \
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