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
 
   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 
   46 exec 3< $PARAMETERS_FILE
 
   50     if [[ -
n "${QUANTITY}" && ! ${QUANTITY} =~ 
"^#" ]]; 
then 
   52         # set environment variables: 
   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 
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream. 
 
then usage $script< string identifier >< detectorfile > input file(toashort file)+" "\nNote that the input files and toashort files should be one-to-one related." fi if (( $
 
fatal Invalid number of arguments esac let YMIN
 
&set_variable PARAMETERS_FILE
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
then JFileTuna f $INPUT_FILE
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
alias put_queue eval echo n
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null