7 source ${0%${
script}}ulib.sh
13 usage "$script <path> [<detector identifier> [<run> [<type> [version]]]]"\
14 "\nUtility script to list files in archive."
20 3) let
RUN=
" $argv[3]";&
21 2) let
ID=
" $argv[2]";&
23 *) fatal
"Wrong number of arguments."
27 if [[ ! -
d $DIR ]];
then
28 fatal
"Invalid path $argv[1]"
38 # print file properties
51 let A_MINRUN=
" ${ARRAY[-3]}"
52 let A_MAXRUN=
" ${ARRAY[-2]}"
55 let A_COUNTER=
"${A_FILENAME:r}"
57 if (( $RUN >= $A_MINRUN && $RUN <= $A_MAXRUN ));
then
59 ls -l --author $BUFFER
61 if (( $DEBUG >= 3 ));
then
62 echo "identifier: $(($A_ID))"
64 echo "version: $A_VERSION"
65 echo "minimal run: $(($A_MINRUN))"
66 echo "maximal run: $(($A_MAXRUN))"
74 if (( $# == 1 ));
then
75 ls -1 $DIR/ |
egrep ${ANY};
return
80 fatal
"Invalid detector identifier $argv[2]"
84 if (( $# == 2 ));
then
85 ls -1 $DIR/
$ID/;
return
89 if (( $RUN == 0 ));
then
90 fatal
"Invalid run $argv[3]"
94 if (( $# == 3 ));
then
102 if (( $# >= 4 ));
then
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 DIR
then fatal Invalid path $argv[1] fi setopt extendedglob typeset Z8 ID function archive()
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then rm i $OUTPUT_FILE fi let RUN
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then eval ls $DIR $ID $TYPE _
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
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.