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
47 -
F RUN |
read TCAL_0 PCAL_0 RCAL_0 RUN_0
49 if (( $? != 0 )) || [[
"$RUN_0" ==
"" ]] || (( $RUN_0 != $i0 ));
then
56 notice
"Run $RUN_0 $TCAL_0 $PCAL_0 $RCAL_0"
58 for (( i1 = $i0 + 1; $i1 <= $MAXRUN; i1 += 1 ));
do
66 -
F RUN |
read TCAL_1 PCAL_1 RCAL_1 RUN_1
68 if (( $? != 0 )) || [[
"$RUN_1" ==
"" ]] || (( $RUN_1 != $i1 ));
then
72 notice
"Run $RUN_1 $TCAL_1 $PCAL_1 $RCAL_1"
74 if [[
"$TCAL_0" !=
"$TCAL_1" ||
"$PCAL_0" !=
"$PCAL_1" ||
"$RCAL_0" !=
"$RCAL_1" ]]
then
87 if (( $? == 0 ));
then
90 error "Failure
in downloading
detector from database."
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]
then fatal Wrong number of arguments fi set_variable ARCHIVE $argv[1] set_variable DETECTOR_ID $argv[2] set_variable VERSION $argv[3] RUN
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
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then fatal Missing detector file $DETECTOR fi eval JPrintDetector a $DETECTOR O IDENTIFIER RUNS
then fatal Invalid path $argv[1] fi setopt extendedglob typeset Z8 ID function archive()
then fatal Detector file should be binary format fi eval JPrintDetector a $DETECTOR O IDENTIFIER typeset a INPUT_FILES expand_array RUNS for RUN in $RUNS[*]
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
fi set_variable FILENAME $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 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
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
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.