7 source ${0%${
script}}ulib.sh
 
   13     usage "$script  <path>  <detector identifier>  <run>  <type>  [version]  <output file>"\
 
   14           "\nUtility script to retrieve file from archive."\
 
   15           "\nNote that extension from name of file in archive is taken." 
   25     *)  fatal 
"Wrong number of arguments." 
   28 if [[ ! -
d $DIR ]]; 
then 
   29     fatal 
"Invalid path $argv[1]" 
   33     fatal 
"Invalid detector identifier $argv[2]" 
   36 if (( $RUN == 0 )); 
then 
   37     fatal 
"Invalid run $argv[3]" 
   56         let           A_MINRUN=
" ${ARRAY[-3]}" 
   57         let           A_MAXRUN=
" ${ARRAY[-2]}" 
   60         let           A_COUNTER=
"${A_FILENAME:r}" 
   62         if (( $RUN >= $A_MINRUN && $RUN <= $A_MAXRUN )); 
then 
   63             if (( $A_COUNTER > $COUNTER )); 
then 
   64                 let COUNTER=
"$A_COUNTER" 
   70     fatal 
"No archive $DIR/$ID/$TYPE" 
   74     fatal 
"No corresponding files found in archive $DIR" 
   79 if [[ -
f $OUTPUT_FILE ]]; 
then 
   80     fatal 
"File $OUTPUT_FILE already exists." 
   85 if (( $? == 0 )); 
then 
   86     notice 
"Stored archive:$INPUT_FILE to $OUTPUT_FILE" 
   88     fatal  
"File $INPUT_FILE not retrieved from archive." 
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
 
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary. 
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
then fatal Wrong number of arguments fi DIR
 
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
then fatal Invalid run $argv[3] fi setopt extendedglob typeset Z8 ID let COUNTER
 
then rm i $OUTPUT_FILE fi let RUN
 
then JFileTuna f $INPUT_FILE
 
&set_variable OUTPUT_FILE
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
then eval ls $DIR $ID $TYPE _
 
static JNullStream null
Null I/O stream. 
 
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
#define DEBUG(A)
Message macros.