4 if [ -z $JPP_DIR ];
then
5 echo "Variable JPP_DIR undefined."
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
18 usage "$script <archive> <detector identifier|detector file> <version> [run-run]"\
19 "\nAuxiliary script to process dynamical positions and orientations data."\
20 "\nThe static and dynamic data are stored in the archive with the given version."
28 *) fatal
"Wrong number of arguments."
36 eval `JPrintDetector -
a $DETECTOR -O IDENTIFIER`
43 fatal
"Missing file $DETECTOR"\
44 "\nYou may want to execute archive-get-calibration.sh beforehand."
47 JAcoustics.sh $DETECTOR_ID
51 archive-put-calibration.sh $ARCHIVE $VERSION ./
55 RUNS=(`JRuns -
D $DETECTOR_ID -
F RUN -@
"RUN >= ${RANGE%%-*}" -@
"RUN <= ${RANGE##*-}" | sort -g`)
57 for (( L = 1; $L <= ${#
RUNS}; L += $PERIOD ));
do
59 let
"R = $L + $PERIOD - 1"
65 let
"LS = $L - $MARGIN"
66 let
"RS = $R + $MARGIN"
68 if (( $LS < 1 ));
then
75 echo "\n\nProcessing runs $RUNS[$L]-$RUNS[$R]\n"
83 for ((
i = $LS;
$i <= $RS;
i += 1 ));
do
96 if [[ ! -
f $OUTPUT_FILE ]];
then
104 putFile.sh $OUTPUT_FILE $ARCHIVE $DETECTOR_ID
$RUNS[$L]
$RUNS[$R] $TYPE $VERSION
107 error
"No input files for $OUTPUT_FILE"
115 if [[ ! -
f $OUTPUT_FILE ]];
then
119 putFile.sh $OUTPUT_FILE $ARCHIVE $DETECTOR_ID
$RUNS[$L]
$RUNS[$R] $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]
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
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
then usage $script< input file > nFor possible input files
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
do JPlot2D f $WORKDIR canberra[${EMITTER}\] root
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 rm i $OUTPUT_FILE fi let RUN
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable WORKDIR if do_usage *then usage for INPUT_FILE in $INPUT_FILES[*]
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
then JFileTuna f $INPUT_FILE
&set_variable OUTPUT_FILE
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
do set_variable INPUT_FILE $WORKDIR KM3NeT_
then fatal The output file must have the wildcard in the e g root fi 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 sput $STRING $FLOOR sget MODULE INPUT_FILES
then fatal Abort fi fi done for RUN in $RUNS[*]
then eval ls $DIR $ID $TYPE _
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.