4 if [ -z $JPP_DIR ];
then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
16 usage "$script <archive> <version> <detector identifier> (run[-run])+"\
17 "\nAuxiliary script to download online detector files from database and to store these in archive."
26 fatal
"Wrong number of arguments."
36 let
"MINRUN = ${RANGE%%-*}"
37 let
"MAXRUN = ${RANGE##*-}"
39 for (( i0 = $MINRUN; $i0 <= $MAXRUN; ));
do
46 -
F PMT_T0_CALIBRATION \
47 -
F DOM_POSITION_CALIBRATION \
48 -
F DOM_ROTATION_CALIBRATION \
49 -
F ACOUSTIC_T0_CALIBRATION \
50 -
F COMPASS_CALIBRATION \
51 -
F STATUS_CALIBRATION |
read RUN_0 TCAL_0 PCAL_0 RCAL_0 ACAL_0 CCAL_0 SCAL_0
53 if (( $? != 0 ));
then
57 notice
"Run $RUN_0 $TCAL_0 $PCAL_0 $RCAL_0 $ACAL_0 $CCAL_0 $SCAL_0"
59 for (( i1 = $i0 + 1; $i1 <= $MAXRUN; i1 += 1 ));
do
66 -
F PMT_T0_CALIBRATION \
67 -
F DOM_POSITION_CALIBRATION \
68 -
F DOM_ROTATION_CALIBRATION \
69 -
F ACOUSTIC_T0_CALIBRATION \
70 -
F COMPASS_CALIBRATION \
71 -
F STATUS_CALIBRATION |
read RUN_1 TCAL_1 PCAL_1 RCAL_1 ACAL_1 CCAL_1 SCAL_1
73 if (( $? != 0 ));
then
77 notice
"Run $RUN_1 $TCAL_1 $PCAL_1 $RCAL_1 $ACAL_1 $CCAL_1 $SCAL_1"
79 if [[
"$TCAL_0" !=
"$TCAL_1" ||
"$PCAL_0" !=
"$PCAL_1" ||
"$RCAL_0" !=
"$RCAL_1" ||
"$ACAL_0" !=
"$ACAL_1" ||
"$CCAL_0" !=
"$CCAL_1" ||
"$SCAL_0" !=
"$SCAL_1" ]]
then
94 putFile.sh
$DETECTOR $ARCHIVE $DETECTOR_ID $i0 $(($i1 - 1)) $TYPE $VERSION
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.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O SUMMARY JPrintDAQHeader f $INPUT_FILE read A DAQ_HEADER set_variable DETECTOR_ID
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
usr share Modules init zsh export TMPDIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
then fatal Detector file should be binary format fi eval JPrintDetector a $DETECTOR O IDENTIFIER typeset a INPUT_FILES for RANGE in $RUNS[*]
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
then rm i $OUTPUT_FILE fi let RUN
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
then JCookie sh JDataQuality D $DETECTOR_ID R
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
do echo n Creating graphics for string $STRING for((FLOOR=$FIRST_FLOOR;$FLOOR<=$LAST_FLOOR;FLOOR+=1))
do set_variable DETECTOR_TXT $WORKDIR detector
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
do echo Generating $dir eval D
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
then fatal Invalid detector identifier $DETECTOR_ID fi set_variable RUNSETUPID typeset a RANGE RANGE[1]
#define DEBUG(A)
Message macros.