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 [<detector identifier> <run range>] <QA/QC file>"\
18 "\nExample script to produce data quality plots."\
19 "\nWhen a detector identifier and run range are specified, data are downloaded from the database"\
20 "\nand subsequently stored in the given QA/QC file, unless this file already exists."
24 0) fatal
"Wrong number of arguments.";;
33 if (( $# == 3 ));
then
35 if ( ! reuse_file $QUALITY_TXT );
then
41 -
R "${RANGE%%-*} ${RANGE##*-}" \
46 echo "Note that the specified detector identifer and runs are discarded."
53 -
R "${RANGE%%-*} ${RANGE##*-}" \
55 -
Q "livetime_s; 1200 60000" \
56 -
Q "(UTCMax_s - UTCMin_s) - livetime_s; -100 +100" \
57 -
Q "JDAQEvent / livetime_s; 0.05 50.0" \
61 -
Q "FIFO; 0.00 0.01" \
62 -
Q "MEAN_Rate_Hz; 4500 15000" \
63 -
Q "RMS_Rate_Hz; 200 5000" \
64 -
Q "Acoustics / livetime_s; 0.0 100.0" \
65 -
Q "AHRS / livetime_s; 0.0 100.0" \
66 -
V "(JDAQEvent - JTriggerReprocessor) * 1.0 / (JDAQEvent + 1.0e-10); -5.0e-3 +5.0e-3" \
76 -
f ${QUALITY_ROOT}:h0 \
78 -\^
"number of runs" \
83 -
f ${QUALITY_ROOT}:h1 \
84 -\^
"number of runs" \
90 -
f ${QUALITY_ROOT}:VETO \
104 \^\(JDAQEvent\.\*JTriggerReprocessor\) event-
count
116 for KEY VALUE
in ${(@kv)BUFFER};
do
120 -
f ${QUALITY_ROOT}:${KEY} \
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]
Q(UTCMax_s-UTCMin_s)-livetime_s
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
then set_variable singlesRate set_variable doublesRate set_variable numberOfSlices echo Generating random background echo Singles rate
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
then usage $script< input file >[option] nPossible options count
&set_variable QUALITY_TXT
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
esac set_variable FILEPREFIX
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
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
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 JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
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 JHobbit a $DETECTOR f
then eval ls $DIR $ID $TYPE _
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
do echo Generating $dir eval D
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
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
then fatal Invalid detector identifier $DETECTOR_ID fi set_variable RUNSETUPID typeset a RANGE RANGE[1]
#define DEBUG(A)
Message macros.