8 if [ -z $JPP_DIR ];
then
9 echo "Variable JPP_DIR undefined."
13 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null
15 # Auxiliary script to produce QA/QC data.
17 # The output data are uploaded to the database with a tool that is part of the km3pipe package.
18 # The locally produced data as well as the uploaded data can be viewed with applications/scripts JDataMonitor[.sh] and JDataQuality[.sh].
20 # Note that if the list of values is extended, the include file JRunQuality.hh should accordingly be updated.
27 trigger3DShower.enabled
28 triggerMXShower.enabled
35 TRIGGERS=(`JPrintTriggerBits`)
62 "$script (input file)+ <QA/QC file>" \
63 "\nAuxiliary script to produce the following QA/QC data:" \
68 fatal
"Wrong number of arguments."
84 if [[ ! -s $QAQC_FILE ]];
then
85 echo $PARAMETERS[*] > $QAQC_FILE
92 JPrintMeta -
v |&
awk '/version/ { print $2 }' |
read GIT_VERSION
97 echo ${(s/./)DAQ_VERSION} |
read DAQ_MAJOR DAQ_MINOR DAQ_PATCH
99 if [[ -z $DAQ_VERSION ]];
then
115 if [[
"$DAQ_MAJOR" != [0-9][0-9]* ]] || (( $DAQ_MAJOR <= 12 ));
then # Jpp-
version dependence
118 -
P "-1 -1 set UDP_COUNTER_DISABLE" \
119 -
P "-1 -1 set UDP_TRAILER_DISABLE" \
123 # JAcoustics.sh ${DETECTOR_ID} # install acoustics input files
140 JTriggerReprocessor \
156 -
Q 3 3>&1 1>&4 |
read -
A TURBOT } 4>&1
168 if (( $? == 0 ));
then
172 JPrintTree -
f ${
OUTPUT_FILE} |&
awk '/JACOUSTICS::JEvent/ { print $3 }' |
read -
A NUMBER_OF_ACOUSTICS_EVENTS
174 NUMBER_OF_ACOUSTICS_EVENTS=(0)
179 if (( $? == 0 ));
then
186 -
c ${
WORKDIR}/ahrs_calibration.txt \
189 -
Q 3 3>&1 1>&4 |
read -
A NUMBER_OF_AHRS_EVENTS } 4>&1
191 NUMBER_OF_AHRS_EVENTS=(0)
196 printf
" %12s" ${GIT_VERSION} >> $QAQC_FILE
197 printf
" %12s" ${DAQ_VERSION:-\?} >> $QAQC_FILE
198 printf
" %s" ${UUID:-\?} >> $QAQC_FILE
199 printf
" %8d" ${DAQ_HEADER[1,2]} >> $QAQC_FILE
200 printf
" %9.1f" ${LIVETIME_S[1]} >> $QAQC_FILE
201 printf
" %12.1f" ${UTC_S[*]} >> $QAQC_FILE
207 printf
" %4d" ${VALUE:-0} >> $QAQC_FILE
210 for KEY
in ${
DAQ[*]};
do
212 JPrintTree -
f ${
INPUT_FILE} |& eval
awk \
'/${KEY}/ \{ print \$3 \}\' | read VALUE
214 printf " %8d" ${VALUE:-0} >> $QAQC_FILE
217 printf " %8d" ${TRIGGER_REPROCESSOR:-0} >> $QAQC_FILE
218 printf " %8d" ${TRIGGER_MONITOR[*]} >> $QAQC_FILE
219 printf " %4d" ${TURBOT[1,2]} >> $QAQC_FILE
220 printf " %7.5f" ${SUMMARY_MONITOR[1,4]} >> $QAQC_FILE
221 printf " %8.1f" ${SUMMARY_MONITOR[5]} >> $QAQC_FILE
222 printf " %7.0f" ${SUMMARY_MONITOR[6,7]} >> $QAQC_FILE
223 printf " %4d" ${NUMBER_OF_ACOUSTICS_EVENTS[1]} >> $QAQC_FILE
224 printf " %8.3f" ${NUMBER_OF_AHRS_EVENTS[1]} >> $QAQC_FILE
225 printf "\n" >> $QAQC_FILE
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 No hydrophone data file $HYDROPHONE_TXT fi sort gr k
Q(UTCMax_s-UTCMin_s)-livetime_s
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
*fatal Wrong number of arguments esac check_input_file $INPUT_FILE for TIMESLICE in JDAQTimeslice JDAQTimesliceL0 JDAQTimesliceL1 JDAQTimesliceL2 JDAQTimesliceSN
*fatal Wrong number of arguments esac TRIGGER_PARAMETERS
o $QUALITY_ROOT d $DEBUG!JPlot1D f
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then JCookie sh JDataQuality D $DETECTOR_ID R $RUNS[*] o $QUALITY_TXT d $DEBUG!fi fi JDataQuality f $QUALITY_TXT Q livetime_s
static const double C
Physics constants.
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 if do_usage *then usage $script< detector identifier > fi case set_variable DETECTOR_ID
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable STRING_TXT awk
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
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
&set_variable OUTPUT_FILE
do sput $STRING $FLOOR sget MODULE INPUT_FILES
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
double getLivetime(const std::string &file_name)
Get data taking live time.
$WORKDIR ev_configure_domsimulator txt echo process $DOM_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DOM_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
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
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
do echo Generating $dir eval D
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
static const JPBS_t AHRS(3, 4, 3, 4)
PBS of compass
#define DEBUG(A)
Message macros.