4 if [ -z $JPP_DIR ]; 
then 
    5     echo "Variable JPP_DIR undefined." 
    9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   17     usage "$script <qaqc file> <detector identifier> <first run> <last run> [working directory]" 
   25     *)  fatal 
"Wrong number of arguments." 
   31 echo "Output will appear in directory ${WORKDIR}." 
   35 # Check the quality of the runs 
   38  -
Q "livetime_s;                                            1200     60000"   \
 
   39     -
Q "(UTCMax_s - UTCMin_s) - livetime_s;                   -100     +100"     \
 
   40     -
Q "JDAQEvent / livetime_s;                                0.05     50.0"    \
 
   44     -
Q "FIFO;                                                  0.00     0.01"    \
 
   45     -
Q "MEAN_Rate_Hz;                                          4500    15000"    \
 
   46     -
Q "RMS_Rate_Hz;                                           200      5000"    \
 
   47     -
V "(JDAQEvent - JTriggerReprocessor) * 1.0 / (JDAQEvent + 1.0e-10);  -5.0e-3  +5.0e-3"  \
 
   54     -
f ${QUALITY_ROOT}:h0                                          \
 
   56     -\^ 
"number of runs"                                           \
 
   61     -
f ${QUALITY_ROOT}:h1                                          \
 
   63     -\^ 
"number of runs"                                           \
 
   77     -
f ${QUALITY_ROOT}:UTC                                         \
 
   85     -
f ${QUALITY_ROOT}:JDAQEvent                                   \
 
   93     -
f ${QUALITY_ROOT}:
HRV                                         \
 
  101     -
f ${QUALITY_ROOT}:
DAQ$                                        \
 
  109     -
f ${QUALITY_ROOT}:
WR                                          \
 
  117     -
f ${QUALITY_ROOT}:
FIFO                                        \
 
  150     -
f ${QUALITY_ROOT}:VETO                                        \
 
  158 # Check whether ghostscript is installed, and if, combine all plots 
  159 if (( $+commands[gs] )); 
then 
Q(UTCMax_s-UTCMin_s)-livetime_s
 
then set_variable singlesRate set_variable doublesRate set_variable numberOfSlices echo Generating random background echo Singles rate
 
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
 
&set_variable QUALITY_TXT
 
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
 
esac set_variable FILEPREFIX
 
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
 
do JPrintDAQHeader f $INPUT_FILE d read DETECTOR_ID RUN FRAME_INDEX TIMESLICE_START set_variable OUTPUT_FILE $WORKDIR KM3NeT_
 
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 echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
 
do grep(chi2\[.\]\|gradient\)" $INPUT_FILE > $WORKDIR/stage.txt awk 'BEGIN 
 
fi set_variable FILENAME $WORKDIR
 
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.