4 # ------------------------------------------------------------------------------------------ 
    6 #                Auxiliary script to plot slow control data from database. 
    8 # ------------------------------------------------------------------------------------------ 
   10 if [ -z $JPP_DIR ]; 
then 
   11     echo "Variable JPP_DIR undefined." 
   15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   20 set_variable  TIMEAXIS            ${DATABASE_TIMESAXIS:-%
d:%m:%y%F1970-01-01 00:00:00}
 
   24 if ( do_usage $* ); 
then 
   25     usage "$script <input file> <parameters file> [working directory]" 
   32     *) fatal 
"Wrong number of arguments." 
   36     fatal 
"File $INPUT_FILE not found." 
   39 if [[ ! -
f $PARAMETERS_FILE ]]; 
then 
   40     echo         $PARAMETERS_FILE > 
$WORKDIR/.parameters.txt                # temporary file
 
   46 exec 3< $PARAMETERS_FILE
 
   50     if [[ -
n "${QUANTITY}" && ! ${QUANTITY} =~ 
"^#" ]]; 
then 
   52         # set environment variables: 
   57         eval `JPrintTitle -
f ${INPUT_FILE}:TUNA`
 
   59         echo $QUANTITY  |  sed -
n "s/\([^\.]*\)\.\([^\.]*\)\.\(.*\)/\1 \2 \3/p"  |  
read string floor QUANTITY
 
   61         debug "Parsed: <${string}> <${floor}> <${QUANTITY}>" 
   63         if [[ ${
string} != $WILDCARD ]]; 
then 
   64             set_array    STRINGS      $string
 
   67         if [[ ${floor}  != $WILDCARD ]]; 
then 
void set_variable(const std::string &name, const std::string &value)
Set environment variable. 
 
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream. 
 
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
 
fatal Invalid number of arguments esac let YMIN
 
&set_variable PARAMETERS_FILE
 
do montage tile geometry tmp
 
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
then JFileTuna f $INPUT_FILE
 
alias put_queue eval echo n
 
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
 
#define DEBUG(A)
Message macros.