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 10.0" \
44 -
Q "FIFO; 0.00 0.01" \
45 -
Q "MEAN_Rate_Hz; 4500 12000" \
46 -
Q "RMS_Rate_Hz; 200 3000" \
53 -
f ${QUALITY_ROOT}:h0 \
55 -\^
"number of runs" \
60 -
f ${QUALITY_ROOT}:
h1 \
62 -\^
"number of runs" \
76 -
f ${QUALITY_ROOT}:UTC \
84 -
f ${QUALITY_ROOT}:JDAQEvent \
92 -
f ${QUALITY_ROOT}:
HRV \
100 -
f ${QUALITY_ROOT}:
DAQ$ \
108 -
f ${QUALITY_ROOT}:
WR \
116 -
f ${QUALITY_ROOT}:
FIFO \
149 -
f ${QUALITY_ROOT}:VETO \
157 # Check whether ghostscript is installed, and if, combine all plots
158 if (( $+commands[gs] ));
then
160 gs -dNOPAUSE -SDEVICE=pdfwrite -sOUTPUTFILE=${
FILEPREFIX}_QAQC.pdf -dBATCH ${
FILEPREFIX}_*.${FORMAT}
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!JPlot1D f
then for HISTOGRAM in h0 h1
&set_variable QUALITY_TXT
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
esac set_variable FILEPREFIX
then JCookie sh JDataQuality D $DETECTOR_ID R $RUNS[*] o $QUALITY_TXT d $DEBUG!fi fi JDataQuality f $QUALITY_TXT Q livetime_s
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
then JConvertDetectorFormat a $DETECTOR[1] o
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
do set_variable INPUT_FILE $WORKDIR KM3NeT_
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